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,
"Citizenship" TEXT,
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 Doe", "1980.0", "USA");
INSERT INTO "singer" VALUES ("2", "Jane Smith", "1992.5", "Canada");
INSERT INTO "singer" VALUES ("3", "Pierre Dubois", "1975.0", "France");
INSERT INTO "singer" VALUES ("4", "Maria Garcia", "1988.0", "Spain");
INSERT INTO "singer" VALUES ("5", "Kenji Tanaka", "1995.0", "Japan");
INSERT INTO "singer" VALUES ("6", "Sophie Martin", "1983.0", "France");
INSERT INTO "singer" VALUES ("7", "Liam O'Connell", "1990.0", "Ireland");
INSERT INTO "singer" VALUES ("8", "Anna Kowalski", "1987.0", "Poland");
INSERT INTO "singer" VALUES ("9", "Jean-Luc Picard", "1960.0", "France");
INSERT INTO "singer" VALUES ("10", "Elena Petrova", "1998.0", "Russia");
INSERT INTO "song" VALUES ("101", "Sweet Home Alabama", "1");
INSERT INTO "song" VALUES ("102", "O Canada", "2");
INSERT INTO "song" VALUES ("103", "La Vie en Rose", "3");
INSERT INTO "song" VALUES ("104", "Hallelujah", "1");
INSERT INTO "song" VALUES ("105", "Despacito", "4");
INSERT INTO "song" VALUES ("106", "Sakura Sakura", "5");
INSERT INTO "song" VALUES ("107", "Non, je ne regrette rien", "6");
INSERT INTO "song" VALUES ("108", "Whiskey in the Jar", "7");
INSERT INTO "song" VALUES ("109", "Chopin Nocturne No. 2", "8");
INSERT INTO "song" VALUES ("110", "Bohemian Rhapsody", "1");
INSERT INTO "song" VALUES ("111", "Kalinka", "10");
INSERT INTO "song" VALUES ("112", "Imagine", "2");
INSERT INTO "song" VALUES ("113", "Stairway to Heaven", "1");
INSERT INTO "song" VALUES ("114", "Hotel California", "1");
INSERT INTO "song" VALUES ("115", "My Heart Will Go On", "2");