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 "concert" (
"concert_ID" INT,
"Year" TEXT,
PRIMARY KEY ("concert_ID")
);

CREATE TABLE "singer" (
"Singer_ID" INT UNIQUE,
"Name" TEXT,
"Country" TEXT,
"Song_Name" TEXT,
"Song_release_year" TEXT,
"Age" INT,
"Is_male" BOOLEAN,
PRIMARY KEY ("Singer_ID")
);

CREATE TABLE "singer_in_concert" (
"concert_ID" INT,
"Singer_ID" TEXT,
PRIMARY KEY ("concert_ID", "Singer_ID"),
FOREIGN KEY ("concert_ID") REFERENCES "concert"("concert_ID")
);

CREATE TABLE "stadium" (
"Stadium_ID" INT,
"Location" TEXT,
PRIMARY KEY ("Stadium_ID")
);





INSERT INTO "concert" VALUES ("1", "2014");
INSERT INTO "concert" VALUES ("2", "2015");
INSERT INTO "concert" VALUES ("3", "2016");
INSERT INTO "concert" VALUES ("4", "2017");
INSERT INTO "concert" VALUES ("5", "2018");
INSERT INTO "singer" VALUES ("1", "Alice Johnson", "USA", "Sunrise", "2010", "30", "0");
INSERT INTO "singer" VALUES ("2", "Bob Smith", "UK", "Moonlight", "2012", "40", "1");
INSERT INTO "singer" VALUES ("3", "Carlos Diaz", "Spain", "Estrella", "2015", "28", "1");
INSERT INTO "singer" VALUES ("4", "Diana Lee", "South Korea", "Spring", "2018", "22", "0");
INSERT INTO "singer" VALUES ("5", "Ethan Brown", "Canada", "Northern Lights", "2011", "35", "1");
INSERT INTO "singer" VALUES ("6", "Fiona Green", "Australia", "Ocean Breeze", "2013", "27", "0");
INSERT INTO "singer" VALUES ("7", "George White", "USA", "Thunder", "2014", "45", "1");
INSERT INTO "singer" VALUES ("8", "Hannah Black", "UK", "Rainfall", "2016", "33", "0");
INSERT INTO "singer" VALUES ("9", "Ivan Petrov", "Russia", "Snowfall", "2017", "38", "1");
INSERT INTO "singer" VALUES ("10", "Julia Kim", "South Korea", "Blossom", "2019", "25", "0");
INSERT INTO "singer" VALUES ("11", "Kevin Zhang", "China", "Dragonfly", "2014", "29", "1");
INSERT INTO "singer" VALUES ("12", "Laura Martinez", "Mexico", "Fiesta", "2015", "31", "0");
INSERT INTO "singer" VALUES ("13", "Michael Scott", "USA", "Paper Town", "2010", "50", "1");
INSERT INTO "singer" VALUES ("14", "Nina Rossi", "Italy", "Vento", "2013", "26", "0");
INSERT INTO "singer" VALUES ("15", "Oscar Wilde", "Ireland", "Green Fields", "2012", "42", "1");
INSERT INTO "singer" VALUES ("16", "Paula Gomez", "Brazil", "Carnaval", "2016", "24", "0");
INSERT INTO "singer" VALUES ("17", "Quinn Taylor", "USA", "Midnight", "2017", "37", "1");
INSERT INTO "singer" VALUES ("18", "Rachel Adams", "Canada", "Maple Leaf", "2018", "29", "0");
INSERT INTO "singer" VALUES ("19", "Steve Rogers", "USA", "Shield", "2011", "41", "1");
INSERT INTO "singer" VALUES ("20", "Tina Chen", "China", "Lotus", "2019", "23", "0");
INSERT INTO "singer" VALUES ("21", "Uma Patel", "India", "Monsoon", "2015", "34", "0");
INSERT INTO "singer" VALUES ("22", "Victor Hugo", "France", "Liberté", "2014", "39", "1");
INSERT INTO "singer" VALUES ("23", "Wendy Clark", "UK", "Sunset", "2013", "28", "0");
INSERT INTO "singer" VALUES ("24", "Xander Lee", "South Korea", "Nightfall", "2016", "30", "1");
INSERT INTO "singer" VALUES ("25", "Yara Silva", "Brazil", "Samba", "2017", "27", "0");
INSERT INTO "singer" VALUES ("26", "Zane Miller", "USA", "Echo", "2018", "36", "1");
INSERT INTO "singer" VALUES ("27", "Lone Singer", "Norway", "Silent Night", "2019", "40", "1");
INSERT INTO "singer_in_concert" VALUES ("1", "1");
INSERT INTO "singer_in_concert" VALUES ("1", "2");
INSERT INTO "singer_in_concert" VALUES ("1", "3");
INSERT INTO "singer_in_concert" VALUES ("2", "4");
INSERT INTO "singer_in_concert" VALUES ("2", "5");
INSERT INTO "singer_in_concert" VALUES ("2", "6");
INSERT INTO "singer_in_concert" VALUES ("3", "7");
INSERT INTO "singer_in_concert" VALUES ("3", "8");
INSERT INTO "singer_in_concert" VALUES ("3", "9");
INSERT INTO "singer_in_concert" VALUES ("4", "10");
INSERT INTO "singer_in_concert" VALUES ("4", "11");
INSERT INTO "singer_in_concert" VALUES ("4", "12");
INSERT INTO "singer_in_concert" VALUES ("5", "13");
INSERT INTO "singer_in_concert" VALUES ("5", "14");
INSERT INTO "singer_in_concert" VALUES ("5", "15");
INSERT INTO "singer_in_concert" VALUES ("1", "16");
INSERT INTO "singer_in_concert" VALUES ("2", "17");
INSERT INTO "singer_in_concert" VALUES ("3", "18");
INSERT INTO "singer_in_concert" VALUES ("4", "19");
INSERT INTO "singer_in_concert" VALUES ("5", "20");
INSERT INTO "singer_in_concert" VALUES ("1", "21");
INSERT INTO "singer_in_concert" VALUES ("2", "22");
INSERT INTO "singer_in_concert" VALUES ("3", "23");
INSERT INTO "singer_in_concert" VALUES ("4", "24");
INSERT INTO "singer_in_concert" VALUES ("5", "25");
INSERT INTO "singer_in_concert" VALUES ("1", "26");
INSERT INTO "singer_in_concert" VALUES ("2", "27");
INSERT INTO "stadium" VALUES ("1", "Madison Square Garden");
INSERT INTO "stadium" VALUES ("2", "Wembley Stadium");
INSERT INTO "stadium" VALUES ("3", "Sydney Opera House");
INSERT INTO "stadium" VALUES ("4", "Olympic Stadium");
INSERT INTO "stadium" VALUES ("5", "Tokyo Dome");