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

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





INSERT INTO "singer" VALUES ("1", "USA");
INSERT INTO "singer" VALUES ("2", "UK");
INSERT INTO "singer" VALUES ("3", "USA");
INSERT INTO "singer" VALUES ("4", "Canada");
INSERT INTO "singer" VALUES ("5", "USA");
INSERT INTO "singer" VALUES ("6", "France");
INSERT INTO "singer" VALUES ("7", "UK");
INSERT INTO "singer" VALUES ("8", "USA");
INSERT INTO "singer" VALUES ("9", "Germany");
INSERT INTO "singer" VALUES ("10", "USA");
INSERT INTO "song" VALUES ("101", "1", "500000.0", "1");
INSERT INTO "song" VALUES ("102", "2", "300000.0", "5");
INSERT INTO "song" VALUES ("103", "3", "450000.0", "2");
INSERT INTO "song" VALUES ("104", "4", "200000.0", "10");
INSERT INTO "song" VALUES ("105", "5", "600000.0", "1");
INSERT INTO "song" VALUES ("106", "6", "150000.0", "15");
INSERT INTO "song" VALUES ("107", "7", "350000.0", "3");
INSERT INTO "song" VALUES ("108", "8", "700000.0", "1");
INSERT INTO "song" VALUES ("109", "9", "100000.0", "20");
INSERT INTO "song" VALUES ("110", "10", "550000.0", "2");