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.0", "200.0");
INSERT INTO "singer" VALUES ("2", "Stevie Wonder", "1950.0", "110.0");
INSERT INTO "singer" VALUES ("3", "Ozzy Osbourne", "1948.0", "220.0");
INSERT INTO "singer" VALUES ("4", "Bruce Springsteen", "1949.0", "500.0");
INSERT INTO "singer" VALUES ("5", "Elton John", "1947.0", "550.0");
INSERT INTO "singer" VALUES ("6", "Billy Joel", "1949.0", "225.0");
INSERT INTO "singer" VALUES ("7", "David Bowie", "1947.0", "200.0");
INSERT INTO "singer" VALUES ("8", "Robert Plant", "1948.0", "170.0");
INSERT INTO "singer" VALUES ("9", "Rod Stewart", "1945.0", "300.0");
INSERT INTO "singer" VALUES ("10", "Bob Dylan", "1941.0", "200.0");
INSERT INTO "song" VALUES ("1", "Imagine", "1");
INSERT INTO "song" VALUES ("2", "Superstition", "2");
INSERT INTO "song" VALUES ("3", "Crazy Train", "3");
INSERT INTO "song" VALUES ("4", "Born to Run", "4");
INSERT INTO "song" VALUES ("5", "Rocket Man", "5");
INSERT INTO "song" VALUES ("6", "Piano Man", "6");
INSERT INTO "song" VALUES ("7", "Space Oddity", "7");
INSERT INTO "song" VALUES ("8", "Stairway to Heaven", "8");
INSERT INTO "song" VALUES ("9", "Maggie May", "9");
INSERT INTO "song" VALUES ("10", "Like a Rolling Stone", "10");
INSERT INTO "song" VALUES ("11", "War Pigs", "3");
INSERT INTO "song" VALUES ("12", "Thunder Road", "4");
INSERT INTO "song" VALUES ("13", "Uptown Girl", "6");
INSERT INTO "song" VALUES ("14", "Paranoid", "3");
INSERT INTO "song" VALUES ("15", "Dancing in the Dark", "4");