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

CREATE TABLE "orchestra" (
"Orchestra_ID" INT,
"Orchestra" TEXT,
"Year_of_Founded" FLOAT,
PRIMARY KEY ("Orchestra_ID")
);

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





INSERT INTO "conductor" VALUES ("1", "Leonard Bernstein", "40");
INSERT INTO "conductor" VALUES ("2", "Marin Alsop", "30");
INSERT INTO "conductor" VALUES ("3", "Gustavo Dudamel", "25");
INSERT INTO "conductor" VALUES ("4", "Valery Gergiev", "45");
INSERT INTO "conductor" VALUES ("5", "Simon Rattle", "35");
INSERT INTO "conductor" VALUES ("6", "Clara Schumann", "45");
INSERT INTO "conductor" VALUES ("7", "John Williams", "20");
INSERT INTO "orchestra" VALUES ("1", "Berlin Philharmonic", "1882");
INSERT INTO "orchestra" VALUES ("2", "Vienna Philharmonic", "1842");
INSERT INTO "orchestra" VALUES ("3", "New York Philharmonic", "1842");
INSERT INTO "orchestra" VALUES ("4", "London Symphony Orchestra", "1904");
INSERT INTO "orchestra" VALUES ("5", "Los Angeles Philharmonic", "1919");
INSERT INTO "performance" VALUES ("1", "Symphony");
INSERT INTO "performance" VALUES ("2", "Concerto");
INSERT INTO "performance" VALUES ("3", "Opera");
INSERT INTO "performance" VALUES ("4", "Ballet");
INSERT INTO "performance" VALUES ("5", "Chamber Music");