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 "singer" (
"Singer_ID" INT,
"Name" TEXT,
"Birth_Year" FLOAT,
"Net_Worth_Millions" FLOAT,
PRIMARY KEY ("Singer_ID")
);

CREATE TABLE "song" (
"Song_ID" INT,
"Title" TEXT,
"Singer_ID" INT,
PRIMARY KEY ("Song_ID"),
FOREIGN KEY ("Singer_ID") REFERENCES "singer"("Singer_ID")
);





INSERT INTO "singer" VALUES ("1", "John Lennon", "1940", "200");
INSERT INTO "singer" VALUES ("2", "Stevie Nicks", "1948", "120");
INSERT INTO "singer" VALUES ("3", "Bruce Springsteen", "1949", "500");
INSERT INTO "singer" VALUES ("4", "Elton John", "1947", "550");
INSERT INTO "singer" VALUES ("5", "Billy Joel", "1949", "220");
INSERT INTO "singer" VALUES ("6", "David Bowie", "1947", "230");
INSERT INTO "singer" VALUES ("7", "Aretha Franklin", "1942", "80");
INSERT INTO "singer" VALUES ("8", "Bob Dylan", "1941", "200");
INSERT INTO "singer" VALUES ("9", "Joni Mitchell", "1943", "100");
INSERT INTO "singer" VALUES ("10", "Paul McCartney", "1942", "1200");
INSERT INTO "song" VALUES ("1", "Imagine", "1");
INSERT INTO "song" VALUES ("2", "Landslide", "2");
INSERT INTO "song" VALUES ("3", "Born to Run", "3");
INSERT INTO "song" VALUES ("4", "Rocket Man", "4");
INSERT INTO "song" VALUES ("5", "Piano Man", "5");
INSERT INTO "song" VALUES ("6", "Space Oddity", "6");
INSERT INTO "song" VALUES ("7", "Respect", "7");
INSERT INTO "song" VALUES ("8", "Like a Rolling Stone", "8");
INSERT INTO "song" VALUES ("9", "Big Yellow Taxi", "9");
INSERT INTO "song" VALUES ("10", "Yesterday", "10");
INSERT INTO "song" VALUES ("11", "Dreams", "2");
INSERT INTO "song" VALUES ("12", "Thunder Road", "3");
INSERT INTO "song" VALUES ("13", "Tiny Dancer", "4");
INSERT INTO "song" VALUES ("14", "Uptown Girl", "5");
INSERT INTO "song" VALUES ("15", "Heroes", "6");