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

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

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





INSERT INTO "conductor" VALUES ("1", "Leonard Bernstein", "American", "45");
INSERT INTO "conductor" VALUES ("2", "Herbert von Karajan", "Austrian", "55");
INSERT INTO "conductor" VALUES ("3", "Marin Alsop", "American", "30");
INSERT INTO "conductor" VALUES ("4", "Riccardo Muti", "Italian", "50");
INSERT INTO "conductor" VALUES ("5", "Gustavo Dudamel", "Venezuelan", "20");
INSERT INTO "conductor" VALUES ("6", "Claudio Abbado", "Italian", "40");
INSERT INTO "conductor" VALUES ("7", "Valery Gergiev", "Russian", "35");
INSERT INTO "conductor" VALUES ("8", "Simon Rattle", "British", "38");
INSERT INTO "conductor" VALUES ("9", "Esa-Pekka Salonen", "Finnish", "25");
INSERT INTO "conductor" VALUES ("10", "Mariss Jansons", "Latvian", "42");
INSERT INTO "orchestra" VALUES ("1", "1890.0");
INSERT INTO "orchestra" VALUES ("2", "1925.5");
INSERT INTO "orchestra" VALUES ("3", "1950.0");
INSERT INTO "orchestra" VALUES ("4", "2000.0");
INSERT INTO "orchestra" VALUES ("5", "1850.0");
INSERT INTO "performance" VALUES ("1", "2023-05-10");
INSERT INTO "performance" VALUES ("2", "2022-11-15");
INSERT INTO "performance" VALUES ("3", "2021-07-20");
INSERT INTO "performance" VALUES ("4", "2020-12-01");
INSERT INTO "performance" VALUES ("5", "2019-03-30");