## 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
.dbconfig fk on
ATTACH DATABASE ':memory:' AS aux38;
-- 


ATTACH DATABASE ':memory:' AS aux32;
SAVEPOINT sp4620;
CREATE TABLE t1(a FLOA PRIMARY KEY, b TEXT, c INT, d INT);
INSERT INTO t1 VALUES (floor(1), 'Wernher', 10, 100);
INSERT INTO t1 VALUES (2, 'von', 20, 200);
INSERT INTO t1 VALUES (3, 'Braun', 30, 300);
CREATE INDEX t1bc ON t1(b, c);
PRAGMA writable_schema = ON;
.imposter t1bc t2

SELECT * FROM t2;
SELECT b, c FROM t1 ORDER BY b, c;
.quit
.stats off
.echo on
SAVEPOINT sp8882;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
ALTER TABLE T1 DROP COLUMN A;
SELECT COUNT(*) FROM T2;
VACUUM;
RELEASE sp8882;
SAVEPOINT sp8882;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
ALTER TABLE T1 DROP COLUMN A;
SELECT COUNT(*) FROM T2;
VACUUM;
RELEASE sp8882;
SAVEPOINT sp8882;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
ALTER TABLE T1 DROP COLUMN A;
SELECT COUNT(*) FROM T2;
VACUUM;
RELEASE sp8882;
SAVEPOINT sp8882;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
CREATE VIRTUAL TABLE T
USING fts5(a,b);
INSERT INTO T VALUES ('a','b c'), ('d','e f');
SELECT a,b FROM T WHERE T MATCH 'b';
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
ALTER TABLE T1 DROP COLUMN A;
SELECT COUNT(*) FROM T2;
VACUUM;
RELEASE sp8882;
SAVEPOINT sp8882;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
ALTER TABLE T1 DROP COLUMN A;
SELECT COUNT(*) FROM T2;
VACUUM;
RELEASE sp8882;
SAVEPOINT sp8882;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
ALTER TABLE T1 DROP COLUMN A;
SELECT COUNT(*) FROM T2;
VACUUM;
RELEASE sp8882;
SAVEPOINT sp8882;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
ALTER TABLE T1 DROP COLUMN A;
SELECT COUNT(*) FROM T2;
VACUUM;
RELEASE sp8882;
SAVEPOINT sp8882;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
ALTER TABLE T1 DROP COLUMN A;
SELECT COUNT(*) FROM T2;
VACUUM;
RELEASE sp8882;
SAVEPOINT sp8882;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- PRAGMA cache_size;
DROP TABLE t0;
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE  INDEX IF NOT EXISTS idx_T2_9440 ON T2(A COLLATE NOCASE) WHERE A IS NOT NULL;
SELECT * FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_2771 AFTER INSERT ON T2 BEGIN SELECT RAISE(IGNORE); END;
ALTER TABLE T1 DROP COLUMN A;
SELECT COUNT(*) FROM T2;
VACUUM;
RELEASE sp8882;
SELECT * FROM T2 AS a RIGHT JOIN T1 AS b ON a.rowid = b.rowid;
WITH cte AS (SELECT * FROM T2 LIMIT 1) DELETE FROM T2 WHERE A IN (SELECT A FROM cte) AND 1=0;
WITH RECURSIVE self(x) AS (SELECT 1 UNION ALL SELECT x FROM self) SELECT * FROM self LIMIT 5;
WITH a AS (SELECT b FROM t1), b AS (SELECT b FROM t1) SELECT * FROM a JOIN b ON a.b = b.b;
ANALYZE;
ROLLBACK TRANSACTION TO SAVEPOINT sp4620;
RELEASE SAVEPOINT sp4620;
CREATE TEMP  VIEW IF NOT EXISTS v_T2_3964 AS SELECT A FROM T2;
DETACH DATABASE aux32;
DETACH DATABASE aux38;
INSERT INTO t1 DEFAULT VALUES;
WITH cte AS (SELECT CASE WHEN A IS NULL THEN 0 ELSE A END AS val FROM T2) SELECT * FROM cte;
ANALYZE T2;
SELECT * FROM t1 WHERE d IN (SELECT d FROM t1 LIMIT 0);
WITH cte AS (SELECT * FROM T2) SELECT * FROM cte a, cte b WHERE a.A = b.A;
```

## Actual output

```sql
CREATE TABLE "t2"("b","c","_ROWID_",PRIMARY KEY("b","c","_ROWID_"))WITHOUT ROWID;
WARNING: writing to an imposter table will corrupt the "t1bc" index!
Braun|30|3
Wernher|10|1
von|20|2
Braun|30
Wernher|10
von|20
```

## Expectation

```sql
CREATE TABLE "t2"("b","c","_ROWID_",PRIMARY KEY("b","c","_ROWID_"))WITHOUT ROWID;
Braun|30|3
Wernher|10|1
von|20|2
Braun|30
Wernher|10
von|20
```

## Flag

```

```

