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

CREATE TABLE "singer" (
"Singer_ID" INT UNIQUE,
"Name" TEXT,
"Country" TEXT,
"Song_Name" TEXT,
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")
);





INSERT INTO "concert" VALUES ("1", "S1");
INSERT INTO "concert" VALUES ("2", "S2");
INSERT INTO "concert" VALUES ("3", "S3");
INSERT INTO "concert" VALUES ("4", "S4");
INSERT INTO "concert" VALUES ("5", "S5");
INSERT INTO "singer" VALUES ("1", "Adele", "UK", "Rolling in the Deep");
INSERT INTO "singer" VALUES ("2", "Ed Sheeran", "UK", "Shape of You");
INSERT INTO "singer" VALUES ("3", "Taylor Swift", "USA", "Blank Space");
INSERT INTO "singer" VALUES ("4", "Beyonce", "USA", "Single Ladies");
INSERT INTO "singer" VALUES ("5", "Drake", "Canada", "Hotline Bling");
INSERT INTO "singer" VALUES ("6", "Celine Dion", "Canada", "My Heart Will Go On");
INSERT INTO "singer" VALUES ("7", "Rihanna", "Barbados", "Umbrella");
INSERT INTO "singer" VALUES ("8", "Justin Bieber", "Canada", "Baby");
INSERT INTO "singer" VALUES ("9", "Dua Lipa", "UK", "New Rules");
INSERT INTO "singer" VALUES ("10", "The Weeknd", "Canada", "Blinding Lights");
INSERT INTO "singer" VALUES ("11", "Ariana Grande", "USA", "Thank U, Next");
INSERT INTO "singer" VALUES ("12", "Shakira", "Colombia", "Hips Don't Lie");
INSERT INTO "singer_in_concert" VALUES ("1", "1");
INSERT INTO "singer_in_concert" VALUES ("1", "3");
INSERT INTO "singer_in_concert" VALUES ("2", "2");
INSERT INTO "singer_in_concert" VALUES ("2", "4");
INSERT INTO "singer_in_concert" VALUES ("3", "5");
INSERT INTO "singer_in_concert" VALUES ("3", "6");
INSERT INTO "singer_in_concert" VALUES ("4", "7");
INSERT INTO "singer_in_concert" VALUES ("4", "8");
INSERT INTO "singer_in_concert" VALUES ("5", "9");
INSERT INTO "singer_in_concert" VALUES ("5", "10");