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

CREATE TABLE "orchestra" (
"Orchestra_ID" INT,
"Orchestra" TEXT,
"Conductor_ID" INT,
"Record_Company" TEXT,
"Year_of_Founded" FLOAT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY ("Conductor_ID") REFERENCES "conductor"("Conductor_ID")
);





INSERT INTO "conductor" VALUES ("1", "Leonard Bernstein");
INSERT INTO "conductor" VALUES ("2", "Herbert von Karajan");
INSERT INTO "conductor" VALUES ("3", "Gustavo Dudamel");
INSERT INTO "conductor" VALUES ("4", "Riccardo Muti");
INSERT INTO "conductor" VALUES ("5", "Zubin Mehta");
INSERT INTO "conductor" VALUES ("6", "Seiji Ozawa");
INSERT INTO "conductor" VALUES ("7", "Daniel Barenboim");
INSERT INTO "conductor" VALUES ("8", "Claudio Abbado");
INSERT INTO "orchestra" VALUES ("1", "New York Philharmonic", "1", "Sony Classical", "1842");
INSERT INTO "orchestra" VALUES ("2", "Berlin Philharmonic", "2", "Deutsche Grammophon", "1882");
INSERT INTO "orchestra" VALUES ("3", "Los Angeles Philharmonic", "3", "Deutsche Grammophon", "1919");
INSERT INTO "orchestra" VALUES ("4", "Chicago Symphony Orchestra", "4", "CSO Resound", "1891");
INSERT INTO "orchestra" VALUES ("5", "Israel Philharmonic Orchestra", "5", "Sony Classical", "1936");
INSERT INTO "orchestra" VALUES ("6", "Boston Symphony Orchestra", "6", "Deutsche Grammophon", "1881");
INSERT INTO "orchestra" VALUES ("7", "Staatskapelle Berlin", "7", "Warner Classics", "1570");
INSERT INTO "orchestra" VALUES ("8", "Lucerne Festival Orchestra", "8", "Accentus Music", "2003");
INSERT INTO "orchestra" VALUES ("9", "Vienna Philharmonic", "2", "Deutsche Grammophon", "1842");
INSERT INTO "orchestra" VALUES ("10", "London Symphony Orchestra", "1", "LSO Live", "1904");
INSERT INTO "orchestra" VALUES ("11", "Royal Concertgebouw Orchestra", "NULL", "RCO Live", "1888");
INSERT INTO "orchestra" VALUES ("12", "San Francisco Symphony", "NULL", "SFS Media", "1911");