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

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

CREATE TABLE "TV_series" (
"id" FLOAT,
"Channel" TEXT,
PRIMARY KEY ("id"),
FOREIGN KEY ("Channel") REFERENCES "TV_Channel"("id")
);





INSERT INTO "Cartoon" VALUES ("1", "John Smith");
INSERT INTO "Cartoon" VALUES ("2", "Alice Johnson");
INSERT INTO "Cartoon" VALUES ("3", "John Smith");
INSERT INTO "Cartoon" VALUES ("4", "Emily Davis");
INSERT INTO "Cartoon" VALUES ("5", "Alice Johnson");
INSERT INTO "Cartoon" VALUES ("6", "Michael Brown");
INSERT INTO "Cartoon" VALUES ("7", "John Smith");
INSERT INTO "Cartoon" VALUES ("8", "Emily Davis");
INSERT INTO "Cartoon" VALUES ("9", "Michael Brown");
INSERT INTO "Cartoon" VALUES ("10", "Michael Brown");
INSERT INTO "Cartoon" VALUES ("11", "Sophia Wilson");
INSERT INTO "Cartoon" VALUES ("12", "Sophia Wilson");
INSERT INTO "Cartoon" VALUES ("13", "Sophia Wilson");
INSERT INTO "Cartoon" VALUES ("14", "Sophia Wilson");
INSERT INTO "Cartoon" VALUES ("15", "Sophia Wilson");
INSERT INTO "Cartoon" VALUES ("16", "Sophia Wilson");
INSERT INTO "Cartoon" VALUES ("17", "Sophia Wilson");
INSERT INTO "Cartoon" VALUES ("18", "Sophia Wilson");
INSERT INTO "Cartoon" VALUES ("19", "Sophia Wilson");
INSERT INTO "Cartoon" VALUES ("20", "Sophia Wilson");
INSERT INTO "Cartoon" VALUES ("21", "No Director");
INSERT INTO "Cartoon" VALUES ("22", "NULL");
INSERT INTO "Cartoon" VALUES ("23", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("24", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("25", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("26", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("27", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("28", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("29", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("30", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("31", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("32", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("33", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("34", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("35", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("36", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("37", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("38", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("39", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("40", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("41", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("42", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("43", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("44", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("45", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("46", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("47", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("48", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("49", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("50", "Zachary Lee");
INSERT INTO "Cartoon" VALUES ("51", "No Cartoons Director");