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 "Cartoon" (
"id" FLOAT,
"Title" TEXT,
"Directed_by" TEXT,
"Original_air_date" TEXT,
PRIMARY KEY ("id")
);

CREATE TABLE "TV_Channel" (
"id" TEXT,
"series_name" TEXT,
PRIMARY KEY ("id")
);

CREATE TABLE "TV_series" (
"id" FLOAT,
"Episode" TEXT,
"Air_Date" TEXT,
PRIMARY KEY ("id")
);





INSERT INTO "Cartoon" VALUES ("1.0", "The Simpsons", "David Silverman", "1989-12-17");
INSERT INTO "Cartoon" VALUES ("2.0", "Family Guy", "Seth MacFarlane", "1999-01-31");
INSERT INTO "Cartoon" VALUES ("3.0", "South Park", "Trey Parker", "1997-08-13");
INSERT INTO "Cartoon" VALUES ("4.0", "Rick and Morty", "Justin Roiland", "2013-12-02");
INSERT INTO "Cartoon" VALUES ("5.0", "Futurama", "Matt Groening", "1999-03-28");
INSERT INTO "Cartoon" VALUES ("6.0", "BoJack Horseman", "Raphael Bob-Waksberg", "2014-08-22");
INSERT INTO "Cartoon" VALUES ("7.0", "Adventure Time", "Pendleton Ward", "2010-04-05");
INSERT INTO "Cartoon" VALUES ("8.0", "SpongeBob SquarePants", "Stephen Hillenburg", "1999-05-01");
INSERT INTO "Cartoon" VALUES ("9.0", "Tom and Jerry", "William Hanna", "1940-02-10");
INSERT INTO "Cartoon" VALUES ("10.0", "Looney Tunes", "Tex Avery", "1930-04-19");
INSERT INTO "TV_Channel" VALUES ("FOX", "The Simpsons");
INSERT INTO "TV_Channel" VALUES ("FOX", "Family Guy");
INSERT INTO "TV_Channel" VALUES ("Comedy Central", "South Park");
INSERT INTO "TV_Channel" VALUES ("Adult Swim", "Rick and Morty");
INSERT INTO "TV_Channel" VALUES ("FOX", "Futurama");
INSERT INTO "TV_Channel" VALUES ("Netflix", "BoJack Horseman");
INSERT INTO "TV_Channel" VALUES ("Cartoon Network", "Adventure Time");
INSERT INTO "TV_Channel" VALUES ("Nickelodeon", "SpongeBob SquarePants");
INSERT INTO "TV_Channel" VALUES ("Cartoon Network", "Tom and Jerry");
INSERT INTO "TV_Channel" VALUES ("Cartoon Network", "Looney Tunes");
INSERT INTO "TV_series" VALUES ("1.0", "Simpsons Roasting on an Open Fire", "1989-12-17");
INSERT INTO "TV_series" VALUES ("2.0", "Death Has a Shadow", "1999-01-31");
INSERT INTO "TV_series" VALUES ("3.0", "Cartman Gets an Anal Probe", "1997-08-13");
INSERT INTO "TV_series" VALUES ("4.0", "Pilot", "2013-12-02");
INSERT INTO "TV_series" VALUES ("5.0", "Space Pilot 3000", "1999-03-28");
INSERT INTO "TV_series" VALUES ("6.0", "The BoJack Horseman Story, Chapter One", "2014-08-22");
INSERT INTO "TV_series" VALUES ("7.0", "Slumber Party Panic", "2010-04-05");
INSERT INTO "TV_series" VALUES ("8.0", "Help Wanted", "1999-05-01");
INSERT INTO "TV_series" VALUES ("9.0", "Puss Gets the Boot", "1940-02-10");
INSERT INTO "TV_series" VALUES ("10.0", "Sinkin' in the Bathtub", "1930-04-19");