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

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





INSERT INTO "singer" VALUES ("1", "Alice Dupont", "France");
INSERT INTO "singer" VALUES ("2", "John Smith", "United States");
INSERT INTO "singer" VALUES ("3", "Maria Garcia", "Spain");
INSERT INTO "singer" VALUES ("4", "Chen Wei", "China");
INSERT INTO "singer" VALUES ("5", "Pierre Martin", "France");
INSERT INTO "singer" VALUES ("6", "Lara Schmidt", "Germany");
INSERT INTO "singer" VALUES ("7", "Ahmed Hassan", "Egypt");
INSERT INTO "singer" VALUES ("8", "Sofia Rossi", "Italy");
INSERT INTO "singer" VALUES ("9", "Jean Moreau", "France");
INSERT INTO "singer" VALUES ("10", "Emma Johnson", "Canada");
INSERT INTO "song" VALUES ("1", "Sunrise", "1", "150000.0");
INSERT INTO "song" VALUES ("2", "Freedom", "2", "250000.0");
INSERT INTO "song" VALUES ("3", "Fiesta", "3", "180000.0");
INSERT INTO "song" VALUES ("4", "Dragonfly", "4", "220000.0");
INSERT INTO "song" VALUES ("5", "Paris Nights", "5", "300000.0");
INSERT INTO "song" VALUES ("6", "Winds of Change", "6", "120000.0");
INSERT INTO "song" VALUES ("7", "Desert Rose", "7", "90000.0");
INSERT INTO "song" VALUES ("8", "Bella Vita", "8", "160000.0");
INSERT INTO "song" VALUES ("9", "Chanson d'Amour", "9", "270000.0");
INSERT INTO "song" VALUES ("10", "Northern Lights", "10", "200000.0");