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,
"Name" TEXT,
PRIMARY KEY ("Conductor_ID")
);

CREATE TABLE "orchestra" (
"Orchestra_ID" INT UNIQUE,
"Record_Company" TEXT,
PRIMARY KEY ("Orchestra_ID")
);

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

CREATE TABLE "show" (
"Attendance" FLOAT
);





INSERT INTO "conductor" VALUES ("1", "Leonard Bernstein");
INSERT INTO "conductor" VALUES ("2", "Gustavo Dudamel");
INSERT INTO "conductor" VALUES ("3", "Marin Alsop");
INSERT INTO "conductor" VALUES ("4", "Simon Rattle");
INSERT INTO "conductor" VALUES ("5", "Valery Gergiev");
INSERT INTO "orchestra" VALUES ("101", "Deutsche Grammophon");
INSERT INTO "orchestra" VALUES ("102", "Sony Classical");
INSERT INTO "orchestra" VALUES ("103", "Deutsche Grammophon");
INSERT INTO "orchestra" VALUES ("104", "Deutsche Grammophon");
INSERT INTO "orchestra" VALUES ("105", "Sony Classical");
INSERT INTO "orchestra" VALUES ("106", "Warner Classics");
INSERT INTO "orchestra" VALUES ("107", "Deutsche Grammophon");
INSERT INTO "orchestra" VALUES ("108", "Deutsche Grammophon");
INSERT INTO "orchestra" VALUES ("109", "Sony Classical");
INSERT INTO "orchestra" VALUES ("110", "Warner Classics");
INSERT INTO "performance" VALUES ("201", "Symphony");
INSERT INTO "performance" VALUES ("202", "Concerto");
INSERT INTO "performance" VALUES ("203", "Opera");
INSERT INTO "performance" VALUES ("204", "Ballet");
INSERT INTO "performance" VALUES ("205", "Chamber Music");
INSERT INTO "show" VALUES ("1500.0");
INSERT INTO "show" VALUES ("1200.5");
INSERT INTO "show" VALUES ("1800.0");
INSERT INTO "show" VALUES ("900.0");
INSERT INTO "show" VALUES ("2000.0");