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

CREATE TABLE "song" (
"Song_ID" INT,
"Title" TEXT,
"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", "Adele", "220.0");
INSERT INTO "singer" VALUES ("2", "Ed Sheeran", "200.0");
INSERT INTO "singer" VALUES ("3", "Taylor Swift", "400.0");
INSERT INTO "singer" VALUES ("4", "Beyoncé", "500.0");
INSERT INTO "singer" VALUES ("5", "Justin Bieber", "280.0");
INSERT INTO "singer" VALUES ("6", "Rihanna", "1400.0");
INSERT INTO "singer" VALUES ("7", "Drake", "250.0");
INSERT INTO "singer" VALUES ("8", "Ariana Grande", "240.0");
INSERT INTO "singer" VALUES ("9", "Bruno Mars", "175.0");
INSERT INTO "singer" VALUES ("10", "Lady Gaga", "320.0");
INSERT INTO "song" VALUES ("1", "Hello", "1", "30.8", "1.0");
INSERT INTO "song" VALUES ("2", "Rolling in the Deep", "1", "20.6", "1.0");
INSERT INTO "song" VALUES ("3", "Someone Like You", "1", "15.2", "1.0");
INSERT INTO "song" VALUES ("4", "Shape of You", "2", "41.5", "1.0");
INSERT INTO "song" VALUES ("5", "Thinking Out Loud", "2", "25.1", "2.0");
INSERT INTO "song" VALUES ("6", "Bad Habits", "2", "18.9", "1.0");
INSERT INTO "song" VALUES ("7", "Blank Space", "3", "12.5", "1.0");
INSERT INTO "song" VALUES ("8", "Shake It Off", "3", "10.8", "1.0");
INSERT INTO "song" VALUES ("9", "Love Story", "3", "8.7", "4.0");
INSERT INTO "song" VALUES ("10", "Single Ladies", "4", "7.2", "1.0");
INSERT INTO "song" VALUES ("11", "Halo", "4", "5.8", "5.0");
INSERT INTO "song" VALUES ("12", "Sorry", "5", "10.5", "1.0");
INSERT INTO "song" VALUES ("13", "What Do You Mean?", "5", "8.9", "1.0");
INSERT INTO "song" VALUES ("14", "Umbrella", "6", "6.1", "1.0");
INSERT INTO "song" VALUES ("15", "Work", "6", "5.5", "1.0");
INSERT INTO "song" VALUES ("16", "Hotline Bling", "7", "4.8", "2.0");
INSERT INTO "song" VALUES ("17", "God's Plan", "7", "7.1", "1.0");
INSERT INTO "song" VALUES ("18", "Thank U, Next", "8", "9.3", "1.0");
INSERT INTO "song" VALUES ("19", "7 Rings", "8", "8.5", "1.0");
INSERT INTO "song" VALUES ("20", "Uptown Funk", "9", "15.0", "1.0");
INSERT INTO "song" VALUES ("21", "Just the Way You Are", "9", "12.0", "1.0");
INSERT INTO "song" VALUES ("22", "Bad Romance", "10", "7.0", "2.0");
INSERT INTO "song" VALUES ("23", "Poker Face", "10", "6.5", "1.0");
INSERT INTO "song" VALUES ("24", "Someone You Loved", "2", "22.0", "1.0");
INSERT INTO "song" VALUES ("25", "All Too Well", "3", "1.5", "1.0");
INSERT INTO "song" VALUES ("26", "Formation", "4", "3.0", "10.0");
INSERT INTO "song" VALUES ("27", "Despacito Remix", "5", "1.0", "1.0");
INSERT INTO "song" VALUES ("28", "Diamonds", "6", "4.0", "1.0");
INSERT INTO "song" VALUES ("29", "One Dance", "7", "6.0", "1.0");
INSERT INTO "song" VALUES ("30", "No Tears Left to Cry", "8", "7.0", "3.0");
INSERT INTO "song" VALUES ("31", "Grenade", "9", "9.0", "1.0");
INSERT INTO "song" VALUES ("32", "Shallow", "10", "11.0", "1.0");
INSERT INTO "song" VALUES ("33", "Set Fire to the Rain", "1", "10.0", "1.0");
INSERT INTO "song" VALUES ("34", "Castle on the Hill", "2", "10.0", "6.0");
INSERT INTO "song" VALUES ("35", "Cruel Summer", "3", "5.0", "1.0");
INSERT INTO "song" VALUES ("36", "Crazy in Love", "4", "4.0", "1.0");
INSERT INTO "song" VALUES ("37", "Love Yourself", "5", "7.0", "1.0");
INSERT INTO "song" VALUES ("38", "We Found Love", "6", "5.0", "1.0");
INSERT INTO "song" VALUES ("39", "In My Feelings", "7", "5.0", "1.0");
INSERT INTO "song" VALUES ("40", "Side to Side", "8", "6.0", "4.0");
INSERT INTO "song" VALUES ("41", "That's What I Like", "9", "8.0", "1.0");
INSERT INTO "song" VALUES ("42", "Born This Way", "10", "5.0", "1.0");
INSERT INTO "song" VALUES ("43", "Water Under the Bridge", "1", "8.0", "26.0");
INSERT INTO "song" VALUES ("44", "Galway Girl", "2", "9.0", "6.0");
INSERT INTO "song" VALUES ("45", "You Belong With Me", "3", "6.0", "2.0");
INSERT INTO "song" VALUES ("46", "Run the World Girls", "4", "3.5", "29.0");
INSERT INTO "song" VALUES ("47", "Baby", "5", "9.0", "5.0");
INSERT INTO "song" VALUES ("48", "Don't Stop The Music", "6", "4.5", "3.0");
INSERT INTO "song" VALUES ("49", "Nonstop", "7", "3.0", "2.0");
INSERT INTO "song" VALUES ("50", "Break Free", "8", "5.0", "4.0");
INSERT INTO "song" VALUES ("51", "24K Magic", "9", "7.0", "4.0");
INSERT INTO "song" VALUES ("52", "Rain On Me", "10", "4.0", "1.0");
INSERT INTO "song" VALUES ("53", "When We Were Young", "1", "7.0", "14.0");
INSERT INTO "song" VALUES ("54", "Perfect", "2", "15.0", "1.0");
INSERT INTO "song" VALUES ("55", "Cardigan", "3", "2.0", "1.0");
INSERT INTO "song" VALUES ("56", "Drunk in Love", "4", "2.5", "2.0");
INSERT INTO "song" VALUES ("57", "Yummy", "5", "0.5", "2.0");
INSERT INTO "song" VALUES ("58", "Love on the Brain", "6", "3.0", "5.0");
INSERT INTO "song" VALUES ("59", "Nice For What", "7", "4.0", "1.0");
INSERT INTO "song" VALUES ("60", "Positions", "8", "6.0", "1.0");
INSERT INTO "song" VALUES ("61", "Finesse", "9", "6.0", "3.0");
INSERT INTO "song" VALUES ("62", "Just Dance", "10", "5.5", "2.0");
INSERT INTO "song" VALUES ("63", "Skyfall", "1", "6.0", "8.0");
INSERT INTO "song" VALUES ("64", "Photograph", "2", "11.0", "10.0");
INSERT INTO "song" VALUES ("65", "Willow", "3", "1.8", "1.0");
INSERT INTO "song" VALUES ("66", "If I Were a Boy", "4", "2.0", "3.0");
INSERT INTO "song" VALUES ("67", "As Long As You Love Me", "5", "6.0", "6.0");
INSERT INTO "song" VALUES ("68", "Pon de Replay", "6", "3.5", "2.0");
INSERT INTO "song" VALUES ("69", "Toosie Slide", "7", "3.5", "1.0");
INSERT INTO "song" VALUES ("70", "Problem", "8", "7.0", "2.0");
INSERT INTO "song" VALUES ("71", "The Lazy Song", "9", "7.5", "4.0");
INSERT INTO "song" VALUES ("72", "Million Reasons", "10", "3.0", "4.0");
INSERT INTO "song" VALUES ("73", "Chasing Pavements", "1", "4.0", "21.0");
INSERT INTO "song" VALUES ("74", "Lego House", "2", "5.0", "5.0");
INSERT INTO "song" VALUES ("75", "The Story of Us", "3", "3.0", "4.0");
INSERT INTO "song" VALUES ("76", "Partition", "4", "1.5", "21.0");
INSERT INTO "song" VALUES ("77", "Boyfriend", "5", "0.8", "2.0");
INSERT INTO "song" VALUES ("78", "S.O.S.", "6", "2.5", "1.0");
INSERT INTO "song" VALUES ("79", "Laugh Now Cry Later", "7", "2.0", "2.0");
INSERT INTO "song" VALUES ("80", "Dangerous Woman", "8", "4.0", "8.0");
INSERT INTO "song" VALUES ("81", "Marry You", "9", "6.0", "11.0");
INSERT INTO "song" VALUES ("82", "Paparazzi", "10", "4.0", "4.0");
INSERT INTO "song" VALUES ("83", "Rumour Has It", "1", "5.0", "16.0");
INSERT INTO "song" VALUES ("84", "Don't", "2", "6.0", "8.0");
INSERT INTO "song" VALUES ("85", "Delicate", "3", "2.5", "12.0");
INSERT INTO "song" VALUES ("86", "XO", "4", "1.0", "45.0");
INSERT INTO "song" VALUES ("87", "One Less Lonely Girl", "5", "5.0", "16.0");
INSERT INTO "song" VALUES ("88", "Disturbia", "6", "3.0", "1.0");
INSERT INTO "song" VALUES ("89", "Life Is Good", "7", "2.5", "2.0");
INSERT INTO "song" VALUES ("90", "Into You", "8", "3.5", "13.0");
INSERT INTO "song" VALUES ("91", "When I Was Your Man", "9", "8.0", "3.0");
INSERT INTO "song" VALUES ("92", "The Edge of Glory", "10", "3.5", "3.0");
INSERT INTO "song" VALUES ("93", "Send My Love To Your New Lover", "1", "6.0", "8.0");
INSERT INTO "song" VALUES ("94", "Happier", "2", "7.0", "1.0");
INSERT INTO "song" VALUES ("95", "Look What You Made Me Do", "3", "4.0", "1.0");
INSERT INTO "song" VALUES ("96", "Flawless", "4", "0.5", "41.0");
INSERT INTO "song" VALUES ("97", "Never Say Never", "5", "4.0", "21.0");
INSERT INTO "song" VALUES ("98", "Rude Boy", "6", "3.0", "2.0");
INSERT INTO "song" VALUES ("99", "Started From the Bottom", "7", "3.0", "6.0");
INSERT INTO "song" VALUES ("100", "God is a woman", "8", "5.0", "8.0");