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,
"Orchestra" TEXT,
"Conductor_ID" INT,
"Record_Company" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY ("Conductor_ID") REFERENCES "conductor"("Conductor_ID")
);





INSERT INTO "conductor" VALUES ("1", "Leonard Bernstein", "American");
INSERT INTO "conductor" VALUES ("2", "Herbert von Karajan", "Austrian");
INSERT INTO "conductor" VALUES ("3", "Claudio Abbado", "Italian");
INSERT INTO "conductor" VALUES ("4", "Daniel Barenboim", "Argentine-Israeli");
INSERT INTO "conductor" VALUES ("5", "Gustavo Dudamel", "Venezuelan");
INSERT INTO "conductor" VALUES ("6", "Marin Alsop", "American");
INSERT INTO "conductor" VALUES ("7", "Simon Rattle", "British");
INSERT INTO "conductor" VALUES ("8", "Zubin Mehta", "Indian");
INSERT INTO "orchestra" VALUES ("101", "New York Philharmonic", "1", "Sony Classical");
INSERT INTO "orchestra" VALUES ("102", "Berlin Philharmonic", "2", "Deutsche Grammophon");
INSERT INTO "orchestra" VALUES ("103", "Vienna Philharmonic", "2", "Deutsche Grammophon");
INSERT INTO "orchestra" VALUES ("104", "London Symphony Orchestra", "7", "LSO Live");
INSERT INTO "orchestra" VALUES ("105", "Chicago Symphony Orchestra", "4", "CSO Resound");
INSERT INTO "orchestra" VALUES ("106", "Los Angeles Philharmonic", "5", "Deutsche Grammophon");
INSERT INTO "orchestra" VALUES ("107", "Baltimore Symphony Orchestra", "6", "Naxos");
INSERT INTO "orchestra" VALUES ("108", "Israel Philharmonic Orchestra", "8", "Sony Classical");
INSERT INTO "orchestra" VALUES ("109", "Lucerne Festival Orchestra", "3", "Deutsche Grammophon");
INSERT INTO "orchestra" VALUES ("110", "West-Eastern Divan Orchestra", "4", "Warner Classics");