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,
"Conductor_ID" INT,
"Year_of_Founded" FLOAT,
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", "1", "1943");
INSERT INTO "orchestra" VALUES ("102", "1", "1958");
INSERT INTO "orchestra" VALUES ("103", "2", "1948");
INSERT INTO "orchestra" VALUES ("104", "2", "1960");
INSERT INTO "orchestra" VALUES ("105", "2", "1970");
INSERT INTO "orchestra" VALUES ("106", "3", "2005");
INSERT INTO "orchestra" VALUES ("107", "4", "1999");
INSERT INTO "orchestra" VALUES ("108", "4", "2003");
INSERT INTO "orchestra" VALUES ("109", "5", "1988");
INSERT INTO "orchestra" VALUES ("110", "5", "1995");
INSERT INTO "orchestra" VALUES ("111", "5", "2000");
INSERT INTO "orchestra" VALUES ("112", "6", "1980");
INSERT INTO "orchestra" VALUES ("113", "6", "1985");
INSERT INTO "orchestra" VALUES ("114", "6", "1990");
INSERT INTO "orchestra" VALUES ("115", "7", "1870");
INSERT INTO "orchestra" VALUES ("116", "8", "1975");
INSERT INTO "orchestra" VALUES ("117", "8", "1982");
INSERT INTO "orchestra" VALUES ("118", "8", "1989");
INSERT INTO "orchestra" VALUES ("119", "8", "1996");
INSERT INTO "performance" VALUES ("1", "Symphony");
INSERT INTO "performance" VALUES ("2", "Opera");
INSERT INTO "performance" VALUES ("3", "Concerto");
INSERT INTO "performance" VALUES ("4", "Ballet");
INSERT INTO "performance" VALUES ("5", "Chamber Music");