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,
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", "Adventures of Tim", "John Smith");
INSERT INTO "Cartoon" VALUES ("2", "Space Explorers", "Jane Doe");
INSERT INTO "Cartoon" VALUES ("3", "Jungle Quest", "John Smith");
INSERT INTO "Cartoon" VALUES ("4", "Mystery Mansion", "Alice Johnson");
INSERT INTO "Cartoon" VALUES ("5", "Ocean Tales", "Jane Doe");
INSERT INTO "Cartoon" VALUES ("6", "Robot Wars", "Bob Brown");
INSERT INTO "Cartoon" VALUES ("7", "Magic Forest", "Alice Johnson");
INSERT INTO "Cartoon" VALUES ("8", "Sky High", "John Smith");
INSERT INTO "Cartoon" VALUES ("9", "Lost City", "NULL");
INSERT INTO "Cartoon" VALUES ("10", "Underwater World", "Jane Doe");
INSERT INTO "Cartoon" VALUES ("11", "Desert Storm", "John Smith");
INSERT INTO "Cartoon" VALUES ("12", "Future Tech", "Bob Brown");
INSERT INTO "Cartoon" VALUES ("13", "Haunted House", "Alice Johnson");
INSERT INTO "Cartoon" VALUES ("14", "Alien Invasion", "John Smith");
INSERT INTO "Cartoon" VALUES ("15", "Wild West", "Eve Davis");
INSERT INTO "Cartoon" VALUES ("16", "City Lights", "Eve Davis");
INSERT INTO "Cartoon" VALUES ("17", "Dragon Riders", "Jane Doe");
INSERT INTO "Cartoon" VALUES ("18", "Cyber Quest", "Bob Brown");
INSERT INTO "Cartoon" VALUES ("19", "Pirate Adventures", "Alice Johnson");
INSERT INTO "Cartoon" VALUES ("20", "Mountain Rescue", "NULL");
INSERT INTO "Cartoon" VALUES ("21", "Time Travelers", "John Smith");
INSERT INTO "Cartoon" VALUES ("22", "Galaxy Fighters", "Jane Doe");
INSERT INTO "Cartoon" VALUES ("23", "Secret Agents", "Eve Davis");
INSERT INTO "Cartoon" VALUES ("24", "Jungle Quest 2", "John Smith");
INSERT INTO "Cartoon" VALUES ("25", "Robot Wars 2", "Bob Brown");
INSERT INTO "Cartoon" VALUES ("26", "Magic Forest 2", "Alice Johnson");
INSERT INTO "Cartoon" VALUES ("27", "Sky High 2", "John Smith");
INSERT INTO "Cartoon" VALUES ("28", "Lost City 2", "NULL");
INSERT INTO "Cartoon" VALUES ("29", "Underwater World 2", "Jane Doe");
INSERT INTO "Cartoon" VALUES ("30", "Desert Storm 2", "John Smith");