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

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

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





INSERT INTO "conductor" VALUES ("1", "Leonard Bernstein");
INSERT INTO "conductor" VALUES ("2", "Marin Alsop");
INSERT INTO "conductor" VALUES ("3", "Gustavo Dudamel");
INSERT INTO "conductor" VALUES ("4", "Valery Gergiev");
INSERT INTO "conductor" VALUES ("5", "Simone Young");
INSERT INTO "orchestra" VALUES ("1", "Berlin Philharmonic");
INSERT INTO "orchestra" VALUES ("2", "Vienna Philharmonic");
INSERT INTO "orchestra" VALUES ("3", "London Symphony Orchestra");
INSERT INTO "orchestra" VALUES ("4", "New York Philharmonic");
INSERT INTO "orchestra" VALUES ("5", "Chicago Symphony Orchestra");
INSERT INTO "performance" VALUES ("1", "Live final", "0.95");
INSERT INTO "performance" VALUES ("2", "Rehearsal", "0.30");
INSERT INTO "performance" VALUES ("3", "Recording", "0.75");
INSERT INTO "performance" VALUES ("4", "Dress rehearsal", "0.40");
INSERT INTO "performance" VALUES ("5", "Live final", "0.98");
INSERT INTO "performance" VALUES ("6", "Preview", "0.20");
INSERT INTO "performance" VALUES ("7", "Recording", "0.85");
INSERT INTO "performance" VALUES ("8", "Rehearsal", "0.10");
INSERT INTO "performance" VALUES ("9", "Preview", "0.05");
INSERT INTO "performance" VALUES ("10", "Dress rehearsal", "0.50");
INSERT INTO "show" VALUES ("1500.0");
INSERT INTO "show" VALUES ("1200.5");
INSERT INTO "show" VALUES ("1800.0");
INSERT INTO "show" VALUES ("1100.0");
INSERT INTO "show" VALUES ("1600.0");