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,
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");
INSERT INTO "conductor" VALUES ("2", "Herbert von Karajan");
INSERT INTO "conductor" VALUES ("3", "Gustavo Dudamel");
INSERT INTO "conductor" VALUES ("4", "Marin Alsop");
INSERT INTO "conductor" VALUES ("5", "Zubin Mehta");
INSERT INTO "conductor" VALUES ("6", "Daniel Barenboim");
INSERT INTO "conductor" VALUES ("7", "Claudio Abbado");
INSERT INTO "conductor" VALUES ("8", "Simon Rattle");
INSERT INTO "conductor" VALUES ("9", "Valery Gergiev");
INSERT INTO "conductor" VALUES ("10", "Riccardo Muti");
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", "3");
INSERT INTO "orchestra" VALUES ("104", "Baltimore Symphony Orchestra", "4");
INSERT INTO "orchestra" VALUES ("105", "Israel Philharmonic Orchestra", "5");
INSERT INTO "orchestra" VALUES ("106", "West-Eastern Divan Orchestra", "6");
INSERT INTO "orchestra" VALUES ("107", "Lucerne Festival Orchestra", "7");
INSERT INTO "orchestra" VALUES ("108", "London Symphony Orchestra", "8");
INSERT INTO "orchestra" VALUES ("109", "Mariinsky Orchestra", "9");
INSERT INTO "orchestra" VALUES ("110", "Chicago Symphony Orchestra", "10");
INSERT INTO "orchestra" VALUES ("111", "Vienna Philharmonic", "2");
INSERT INTO "orchestra" VALUES ("112", "San Francisco Symphony", "1");
INSERT INTO "orchestra" VALUES ("113", "Boston Symphony Orchestra", "5");
INSERT INTO "orchestra" VALUES ("114", "Royal Concertgebouw Orchestra", "8");
INSERT INTO "orchestra" VALUES ("115", "Leipzig Gewandhaus Orchestra", "7");
INSERT INTO "orchestra" VALUES ("116", "Philadelphia Orchestra", "3");
INSERT INTO "orchestra" VALUES ("117", "Cleveland Orchestra", "10");
INSERT INTO "performance" VALUES ("1", "Concert");
INSERT INTO "performance" VALUES ("2", "Opera");
INSERT INTO "performance" VALUES ("3", "Ballet");
INSERT INTO "performance" VALUES ("4", "Symphony");
INSERT INTO "performance" VALUES ("5", "Chamber Music");
INSERT INTO "performance" VALUES ("6", "Recital");
INSERT INTO "performance" VALUES ("7", "Oratorio");
INSERT INTO "performance" VALUES ("8", "Musical");
INSERT INTO "performance" VALUES ("9", "Film Score");
INSERT INTO "performance" VALUES ("10", "Jazz");