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", "USA");
INSERT INTO "singer" VALUES ("3", "Canada");
INSERT INTO "singer" VALUES ("4", "Canada");
INSERT INTO "singer" VALUES ("5", "Canada");
INSERT INTO "singer" VALUES ("6", "UK");
INSERT INTO "singer" VALUES ("7", "UK");
INSERT INTO "singer" VALUES ("8", "UK");
INSERT INTO "singer" VALUES ("9", "UK");
INSERT INTO "singer" VALUES ("10", "Australia");
INSERT INTO "singer" VALUES ("11", "Australia");
INSERT INTO "singer" VALUES ("12", "France");
INSERT INTO "song" VALUES ("1", "1", "500000.0", "1.0");
INSERT INTO "song" VALUES ("2", "1", "300000.0", "5.0");
INSERT INTO "song" VALUES ("3", "2", "100000.0", "10.0");
INSERT INTO "song" VALUES ("4", "3", "250000.0", "3.0");
INSERT INTO "song" VALUES ("5", "4", "150000.0", "7.0");
INSERT INTO "song" VALUES ("6", "5", "200000.0", "4.0");
INSERT INTO "song" VALUES ("7", "6", "400000.0", "2.0");
INSERT INTO "song" VALUES ("8", "7", "350000.0", "3.0");
INSERT INTO "song" VALUES ("9", "8", "100000.0", "15.0");
INSERT INTO "song" VALUES ("10", "9", "50000.0", "20.0");
INSERT INTO "song" VALUES ("11", "10", "120000.0", "8.0");
INSERT INTO "song" VALUES ("12", "11", "130000.0", "6.0");
INSERT INTO "song" VALUES ("13", "12", "90000.0", "12.0");