PRAGMA foreign_keys = ON;

PRAGMA writable_schema = 1;
DELETE FROM sqlite_master WHERE type IN ("table", "index", "trigger");
PRAGMA writable_schema = 0;
VACUUM;

CREATE TABLE "conductor" (
"Conductor_ID" INT UNIQUE,
"Name" TEXT,
"Nationality" TEXT,
PRIMARY KEY ("Conductor_ID")
);

CREATE TABLE "orchestra" (
"Orchestra_ID" INT UNIQUE,
"Orchestra" TEXT,
"Conductor_ID" INT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY ("Conductor_ID") REFERENCES "conductor"("Conductor_ID")
);

CREATE TABLE "performance" (
"Performance_ID" INT,
"Type" TEXT,
PRIMARY KEY ("Performance_ID")
);





INSERT INTO "conductor" VALUES ("1", "Leonard Bernstein", "American");
INSERT INTO "conductor" VALUES ("2", "Herbert von Karajan", "Austrian");
INSERT INTO "conductor" VALUES ("3", "Marin Alsop", "American");
INSERT INTO "conductor" VALUES ("4", "Gustavo Dudamel", "Venezuelan");
INSERT INTO "conductor" VALUES ("5", "Valery Gergiev", "Russian");
INSERT INTO "conductor" VALUES ("6", "Simon Rattle", "British");
INSERT INTO "conductor" VALUES ("7", "Clara Schumann", "German");
INSERT INTO "conductor" VALUES ("8", "Carlos Kleiber", "Austrian");
INSERT INTO "conductor" VALUES ("9", "No Orchestra Conductor", "Unknown");
INSERT INTO "orchestra" VALUES ("101", "New York Philharmonic", "1");
INSERT INTO "orchestra" VALUES ("102", "Berlin Philharmonic", "2");
INSERT INTO "orchestra" VALUES ("103", "Los Angeles Philharmonic", "1");
INSERT INTO "orchestra" VALUES ("104", "Vienna Philharmonic", "2");
INSERT INTO "orchestra" VALUES ("105", "Chicago Symphony Orchestra", "3");
INSERT INTO "orchestra" VALUES ("106", "London Symphony Orchestra", "6");
INSERT INTO "orchestra" VALUES ("107", "San Francisco Symphony", "3");
INSERT INTO "orchestra" VALUES ("108", "Royal Concertgebouw Orchestra", "6");
INSERT INTO "orchestra" VALUES ("109", "Simón Bolívar Symphony Orchestra", "4");
INSERT INTO "orchestra" VALUES ("110", "Mariinsky Theatre Orchestra", "5");
INSERT INTO "orchestra" VALUES ("111", "Munich Philharmonic", "2");
INSERT INTO "orchestra" VALUES ("112", "Cleveland Orchestra", "1");
INSERT INTO "orchestra" VALUES ("113", "Vienna State Opera Orchestra", "2");
INSERT INTO "orchestra" VALUES ("114", "Bavarian Radio Symphony Orchestra", "2");
INSERT INTO "orchestra" VALUES ("115", "Orchestre de Paris", "8");
INSERT INTO "orchestra" VALUES ("116", "Boston Symphony Orchestra", "1");
INSERT INTO "orchestra" VALUES ("117", "Philadelphia Orchestra", "1");
INSERT INTO "orchestra" VALUES ("118", "Stuttgart Radio Symphony Orchestra", "8");
INSERT INTO "orchestra" VALUES ("119", "Detroit Symphony Orchestra", "3");
INSERT INTO "orchestra" VALUES ("120", "Seattle Symphony", "3");