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_age" FLOAT,
"winner_name" TEXT
);

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





INSERT INTO "matches" VALUES ("Serena Williams", "38.5", "Naomi Osaka");
INSERT INTO "matches" VALUES ("Naomi Osaka", "29.1", "Ashleigh Barty");
INSERT INTO "matches" VALUES ("Ashleigh Barty", "23.7", "Simona Halep");
INSERT INTO "matches" VALUES ("Simona Halep", "27.9", "Karolina Pliskova");
INSERT INTO "matches" VALUES ("Karolina Pliskova", "25.3", "Elina Svitolina");
INSERT INTO "matches" VALUES ("Elina Svitolina", "24.0", "Bianca Andreescu");
INSERT INTO "matches" VALUES ("Bianca Andreescu", "26.8", "Sofia Kenin");
INSERT INTO "matches" VALUES ("Sofia Kenin", "22.5", "Victoria Azarenka");
INSERT INTO "matches" VALUES ("Victoria Azarenka", "21.2", "Garbine Muguruza");
INSERT INTO "matches" VALUES ("Garbine Muguruza", "20.0", "Petra Kvitova");
INSERT INTO "matches" VALUES ("Petra Kvitova", "28.0", "Angelique Kerber");
INSERT INTO "matches" VALUES ("Angelique Kerber", "29.5", "Madison Keys");
INSERT INTO "matches" VALUES ("Madison Keys", "23.0", "Sloane Stephens");
INSERT INTO "matches" VALUES ("Sloane Stephens", "26.0", "Venus Williams");
INSERT INTO "matches" VALUES ("Venus Williams", "25.0", "Maria Sharapova");
INSERT INTO "matches" VALUES ("Maria Sharapova", "27.0", "Caroline Wozniacki");
INSERT INTO "matches" VALUES ("Caroline Wozniacki", "24.0", "Anett Kontaveit");
INSERT INTO "matches" VALUES ("Anett Kontaveit", "23.0", "Aryna Sabalenka");
INSERT INTO "matches" VALUES ("Aryna Sabalenka", "22.0", "Johanna Konta");
INSERT INTO "matches" VALUES ("Johanna Konta", "21.0", "Belinda Bencic");
INSERT INTO "players" VALUES ("1", "Venus", "Williams", "1980-06-17");
INSERT INTO "players" VALUES ("2", "Serena", "Williams", "1981-09-26");
INSERT INTO "players" VALUES ("3", "Maria", "Sharapova", "1987-04-19");
INSERT INTO "players" VALUES ("4", "Caroline", "Wozniacki", "1990-07-11");
INSERT INTO "players" VALUES ("5", "Petra", "Kvitova", "1990-03-08");
INSERT INTO "players" VALUES ("6", "Angelique", "Kerber", "1988-01-18");
INSERT INTO "players" VALUES ("7", "Victoria", "Azarenka", "1989-07-31");
INSERT INTO "players" VALUES ("8", "Simona", "Halep", "1991-09-27");
INSERT INTO "players" VALUES ("9", "Karolina", "Pliskova", "1992-03-21");
INSERT INTO "players" VALUES ("10", "Elina", "Svitolina", "1994-09-12");
INSERT INTO "players" VALUES ("11", "Naomi", "Osaka", "1997-10-16");
INSERT INTO "players" VALUES ("12", "Ashleigh", "Barty", "1996-04-24");
INSERT INTO "players" VALUES ("13", "Bianca", "Andreescu", "2000-06-16");
INSERT INTO "players" VALUES ("14", "Sofia", "Kenin", "1998-11-14");
INSERT INTO "players" VALUES ("15", "Garbine", "Muguruza", "1993-10-08");
INSERT INTO "players" VALUES ("16", "Madison", "Keys", "1995-02-04");
INSERT INTO "players" VALUES ("17", "Sloane", "Stephens", "1993-03-20");
INSERT INTO "players" VALUES ("18", "Anett", "Kontaveit", "1995-12-24");
INSERT INTO "players" VALUES ("19", "Aryna", "Sabalenka", "1998-05-05");
INSERT INTO "players" VALUES ("20", "Johanna", "Konta", "1991-05-17");
INSERT INTO "players" VALUES ("21", "Belinda", "Bencic", "1997-03-10");
INSERT INTO "players" VALUES ("22", "Iga", "Swiatek", "2001-05-31");
INSERT INTO "players" VALUES ("23", "Coco", "Gauff", "2004-03-13");
INSERT INTO "players" VALUES ("24", "Emma", "Raducanu", "2002-11-13");
INSERT INTO "players" VALUES ("25", "Leylah", "Fernandez", "2002-09-06");