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 "matches" (
"loser_name" TEXT,
"winner_name" TEXT
);

CREATE TABLE "players" (
"player_id" INT,
"first_name" TEXT,
"last_name" TEXT,
PRIMARY KEY ("player_id")
);





INSERT INTO "matches" VALUES ("Serena Williams", "Maria Sharapova");
INSERT INTO "matches" VALUES ("Maria Sharapova", "Serena Williams");
INSERT INTO "matches" VALUES ("Venus Williams", "Naomi Osaka");
INSERT INTO "matches" VALUES ("Naomi Osaka", "Simona Halep");
INSERT INTO "matches" VALUES ("Simona Halep", "Ashleigh Barty");
INSERT INTO "matches" VALUES ("Ashleigh Barty", "Karolina Pliskova");
INSERT INTO "matches" VALUES ("Karolina Pliskova", "Elina Svitolina");
INSERT INTO "matches" VALUES ("Elina Svitolina", "Bianca Andreescu");
INSERT INTO "matches" VALUES ("Bianca Andreescu", "Sofia Kenin");
INSERT INTO "matches" VALUES ("Sofia Kenin", "Petra Kvitova");
INSERT INTO "matches" VALUES ("Petra Kvitova", "Garbine Muguruza");
INSERT INTO "matches" VALUES ("Garbine Muguruza", "Angelique Kerber");
INSERT INTO "matches" VALUES ("Angelique Kerber", "Victoria Azarenka");
INSERT INTO "matches" VALUES ("Victoria Azarenka", "Sloane Stephens");
INSERT INTO "matches" VALUES ("Sloane Stephens", "Madison Keys");
INSERT INTO "matches" VALUES ("Madison Keys", "Coco Gauff");
INSERT INTO "matches" VALUES ("Coco Gauff", "Leylah Fernandez");
INSERT INTO "matches" VALUES ("Leylah Fernandez", "Emma Raducanu");
INSERT INTO "matches" VALUES ("Emma Raducanu", "Iga Swiatek");
INSERT INTO "matches" VALUES ("Iga Swiatek", "Ons Jabeur");
INSERT INTO "matches" VALUES ("Ons Jabeur", "Aryna Sabalenka");
INSERT INTO "matches" VALUES ("Aryna Sabalenka", "Jessica Pegula");
INSERT INTO "matches" VALUES ("Jessica Pegula", "Danielle Collins");
INSERT INTO "matches" VALUES ("Danielle Collins", "Belinda Bencic");
INSERT INTO "matches" VALUES ("Belinda Bencic", "Barbora Krejcikova");
INSERT INTO "matches" VALUES ("Barbora Krejcikova", "Anett Kontaveit");
INSERT INTO "matches" VALUES ("Anett Kontaveit", "Daria Kasatkina");
INSERT INTO "matches" VALUES ("Daria Kasatkina", "Veronika Kudermetova");
INSERT INTO "matches" VALUES ("Veronika Kudermetova", "Paula Badosa");
INSERT INTO "matches" VALUES ("Paula Badosa", "Maria Sakkari");
INSERT INTO "matches" VALUES ("Maria Sakkari", "Elena Rybakina");
INSERT INTO "matches" VALUES ("Elena Rybakina", "Jelena Ostapenko");
INSERT INTO "matches" VALUES ("Jelena Ostapenko", "Beatriz Haddad Maia");
INSERT INTO "matches" VALUES ("Beatriz Haddad Maia", "Liudmila Samsonova");
INSERT INTO "matches" VALUES ("Liudmila Samsonova", "Ekaterina Alexandrova");
INSERT INTO "matches" VALUES ("Ekaterina Alexandrova", "Donna Vekic");
INSERT INTO "matches" VALUES ("Donna Vekic", "Victoria Azarenka");
INSERT INTO "matches" VALUES ("Victoria Azarenka", "Serena Williams");
INSERT INTO "matches" VALUES ("Serena Williams", "Venus Williams");
INSERT INTO "matches" VALUES ("Venus Williams", "Serena Williams");
INSERT INTO "players" VALUES ("1", "Serena", "Williams");
INSERT INTO "players" VALUES ("2", "Maria", "Sharapova");
INSERT INTO "players" VALUES ("3", "Venus", "Williams");
INSERT INTO "players" VALUES ("4", "Naomi", "Osaka");
INSERT INTO "players" VALUES ("5", "Simona", "Halep");
INSERT INTO "players" VALUES ("6", "Ashleigh", "Barty");
INSERT INTO "players" VALUES ("7", "Karolina", "Pliskova");
INSERT INTO "players" VALUES ("8", "Elina", "Svitolina");
INSERT INTO "players" VALUES ("9", "Bianca", "Andreescu");
INSERT INTO "players" VALUES ("10", "Sofia", "Kenin");
INSERT INTO "players" VALUES ("11", "Petra", "Kvitova");
INSERT INTO "players" VALUES ("12", "Garbine", "Muguruza");
INSERT INTO "players" VALUES ("13", "Angelique", "Kerber");
INSERT INTO "players" VALUES ("14", "Victoria", "Azarenka");
INSERT INTO "players" VALUES ("15", "Sloane", "Stephens");
INSERT INTO "players" VALUES ("16", "Madison", "Keys");
INSERT INTO "players" VALUES ("17", "Coco", "Gauff");
INSERT INTO "players" VALUES ("18", "Leylah", "Fernandez");
INSERT INTO "players" VALUES ("19", "Emma", "Raducanu");
INSERT INTO "players" VALUES ("20", "Iga", "Swiatek");
INSERT INTO "players" VALUES ("21", "Ons", "Jabeur");
INSERT INTO "players" VALUES ("22", "Aryna", "Sabalenka");
INSERT INTO "players" VALUES ("23", "Jessica", "Pegula");
INSERT INTO "players" VALUES ("24", "Danielle", "Collins");
INSERT INTO "players" VALUES ("25", "Belinda", "Bencic");
INSERT INTO "players" VALUES ("26", "Barbora", "Krejcikova");
INSERT INTO "players" VALUES ("27", "Anett", "Kontaveit");
INSERT INTO "players" VALUES ("28", "Daria", "Kasatkina");
INSERT INTO "players" VALUES ("29", "Veronika", "Kudermetova");
INSERT INTO "players" VALUES ("30", "Paula", "Badosa");
INSERT INTO "players" VALUES ("31", "Maria", "Sakkari");
INSERT INTO "players" VALUES ("32", "Elena", "Rybakina");
INSERT INTO "players" VALUES ("33", "Jelena", "Ostapenko");
INSERT INTO "players" VALUES ("34", "Beatriz", "Haddad Maia");
INSERT INTO "players" VALUES ("35", "Liudmila", "Samsonova");
INSERT INTO "players" VALUES ("36", "Ekaterina", "Alexandrova");
INSERT INTO "players" VALUES ("37", "Donna", "Vekic");