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 UNIQUE,
"Net_Worth_Millions" FLOAT,
"Citizenship" TEXT,
PRIMARY KEY ("Singer_ID")
);

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





INSERT INTO "singer" VALUES ("1", "50.5", "United States");
INSERT INTO "singer" VALUES ("2", "75.0", "United Kingdom");
INSERT INTO "singer" VALUES ("3", "20.0", "Canada");
INSERT INTO "singer" VALUES ("4", "100.0", "United States");
INSERT INTO "singer" VALUES ("5", "5.5", "Australia");
INSERT INTO "singer" VALUES ("6", "0.0", "United Kingdom");
INSERT INTO "singer" VALUES ("7", "15.0", "Canada");
INSERT INTO "singer" VALUES ("8", "200.0", "United States");
INSERT INTO "singer" VALUES ("9", "0.0", "France");
INSERT INTO "singer" VALUES ("10", "10.0", "Australia");
INSERT INTO "song" VALUES ("1", "1", "500000.0");
INSERT INTO "song" VALUES ("2", "1", "300000.0");
INSERT INTO "song" VALUES ("3", "2", "1000000.0");
INSERT INTO "song" VALUES ("4", "3", "250000.0");
INSERT INTO "song" VALUES ("5", "4", "750000.0");
INSERT INTO "song" VALUES ("6", "5", "0.0");
INSERT INTO "song" VALUES ("7", "6", "150000.0");
INSERT INTO "song" VALUES ("8", "7", "200000.0");
INSERT INTO "song" VALUES ("9", "8", "1200000.0");
INSERT INTO "song" VALUES ("10", "9", "0.0");
INSERT INTO "song" VALUES ("11", "10", "10000.0");