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

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

CREATE TABLE "performance" (
"Performance_ID" INT,
"Official_ratings_(millions)" FLOAT,
PRIMARY KEY ("Performance_ID")
);





INSERT INTO "conductor" VALUES ("1", "1990");
INSERT INTO "conductor" VALUES ("2", "2005");
INSERT INTO "conductor" VALUES ("3", "1988");
INSERT INTO "conductor" VALUES ("4", "2010");
INSERT INTO "conductor" VALUES ("5", "1995");
INSERT INTO "conductor" VALUES ("6", "2000");
INSERT INTO "orchestra" VALUES ("1", "Sony Classical", "1980.5", "CD");
INSERT INTO "orchestra" VALUES ("2", "Deutsche Grammophon", "1975.0", "Vinyl");
INSERT INTO "orchestra" VALUES ("3", "Warner Classics", "1992.3", "Digital");
INSERT INTO "orchestra" VALUES ("4", "Decca Records", "1960.0", "CD");
INSERT INTO "orchestra" VALUES ("5", "Naxos", "2001.8", "Digital");
INSERT INTO "orchestra" VALUES ("6", "Philips Classics", "1985.0", "CD");
INSERT INTO "orchestra" VALUES ("7", "EMI Classics", "1970.0", "Vinyl");
INSERT INTO "orchestra" VALUES ("8", "Harmonia Mundi", "1998.0", "Digital");
INSERT INTO "performance" VALUES ("1", "5.2");
INSERT INTO "performance" VALUES ("2", "8.1");
INSERT INTO "performance" VALUES ("3", "3.5");
INSERT INTO "performance" VALUES ("4", "6.7");
INSERT INTO "performance" VALUES ("5", "4.9");
INSERT INTO "performance" VALUES ("6", "7.0");
INSERT INTO "performance" VALUES ("7", "2.1");
INSERT INTO "performance" VALUES ("8", "9.3");