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,
"Name" TEXT,
"Birth_Year" FLOAT,
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", "Adele", "1988.0");
INSERT INTO "singer" VALUES ("2", "Ed Sheeran", "1991.0");
INSERT INTO "singer" VALUES ("3", "Taylor Swift", "1989.0");
INSERT INTO "singer" VALUES ("4", "Beyoncé", "1981.0");
INSERT INTO "singer" VALUES ("5", "Justin Bieber", "1994.0");
INSERT INTO "singer" VALUES ("6", "Rihanna", "1988.0");
INSERT INTO "singer" VALUES ("7", "Dua Lipa", "1995.0");
INSERT INTO "singer" VALUES ("8", "The Weeknd", "1990.0");
INSERT INTO "singer" VALUES ("9", "Billie Eilish", "2001.0");
INSERT INTO "singer" VALUES ("10", "Bruno Mars", "1985.0");
INSERT INTO "song" VALUES ("1", "Hello", "1", "30000000.0");
INSERT INTO "song" VALUES ("2", "Rolling in the Deep", "1", "25000000.0");
INSERT INTO "song" VALUES ("3", "Someone Like You", "1", "20000000.0");
INSERT INTO "song" VALUES ("4", "Shape of You", "2", "40000000.0");
INSERT INTO "song" VALUES ("5", "Thinking Out Loud", "2", "35000000.0");
INSERT INTO "song" VALUES ("6", "Bad Habits", "2", "15000000.0");
INSERT INTO "song" VALUES ("7", "Blank Space", "3", "28000000.0");
INSERT INTO "song" VALUES ("8", "Shake It Off", "3", "27000000.0");
INSERT INTO "song" VALUES ("9", "Love Story", "3", "22000000.0");
INSERT INTO "song" VALUES ("10", "Single Ladies", "4", "18000000.0");
INSERT INTO "song" VALUES ("11", "Halo", "4", "15000000.0");
INSERT INTO "song" VALUES ("12", "Sorry", "5", "26000000.0");
INSERT INTO "song" VALUES ("13", "What Do You Mean?", "5", "24000000.0");
INSERT INTO "song" VALUES ("14", "Diamonds", "6", "20000000.0");
INSERT INTO "song" VALUES ("15", "Don't Start Now", "7", "12000000.0");
INSERT INTO "song" VALUES ("16", "Blinding Lights", "8", "30000000.0");
INSERT INTO "song" VALUES ("17", "Bad Guy", "9", "10000000.0");
INSERT INTO "song" VALUES ("18", "Uptown Funk", "10", "25000000.0");
INSERT INTO "song" VALUES ("19", "Just the Way You Are", "10", "20000000.0");
INSERT INTO "song" VALUES ("20", "Grenade", "10", "18000000.0");
INSERT INTO "song" VALUES ("21", "Water Under the Bridge", "1", "10000000.0");
INSERT INTO "song" VALUES ("22", "Castle on the Hill", "2", "12000000.0");
INSERT INTO "song" VALUES ("23", "You Belong With Me", "3", "15000000.0");
INSERT INTO "song" VALUES ("24", "Crazy in Love", "4", "10000000.0");
INSERT INTO "song" VALUES ("25", "Love Yourself", "5", "18000000.0");
INSERT INTO "song" VALUES ("26", "Work", "6", "15000000.0");
INSERT INTO "song" VALUES ("27", "New Rules", "7", "9000000.0");
INSERT INTO "song" VALUES ("28", "Starboy", "8", "18000000.0");
INSERT INTO "song" VALUES ("29", "Ocean Eyes", "9", "8000000.0");