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,
"Channel" TEXT,
PRIMARY KEY ("id"),
FOREIGN KEY ("Channel") REFERENCES "TV_Channel"("id")
);

CREATE TABLE "TV_Channel" (
"id" TEXT UNIQUE,
"Country" TEXT,
"Language" TEXT,
PRIMARY KEY ("id")
);

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





INSERT INTO "TV_Channel" VALUES ("BBC One", "United Kingdom", "English");
INSERT INTO "TV_Channel" VALUES ("ITV", "United Kingdom", "English");
INSERT INTO "TV_Channel" VALUES ("Channel 4", "United Kingdom", "English");
INSERT INTO "TV_Channel" VALUES ("Sky One", "United Kingdom", "English");
INSERT INTO "TV_Channel" VALUES ("RTE One", "Ireland", "English");
INSERT INTO "TV_Channel" VALUES ("TV3", "Ireland", "English");
INSERT INTO "TV_Channel" VALUES ("TF1", "France", "French");
INSERT INTO "TV_Channel" VALUES ("France 2", "France", "French");
INSERT INTO "TV_Channel" VALUES ("ARD", "Germany", "German");
INSERT INTO "TV_Channel" VALUES ("ZDF", "Germany", "German");
INSERT INTO "TV_Channel" VALUES ("NHK", "Japan", "Japanese");
INSERT INTO "TV_Channel" VALUES ("CCTV-1", "China", "Mandarin");
INSERT INTO "TV_Channel" VALUES ("Zee TV", "India", "Hindi");
INSERT INTO "TV_Channel" VALUES ("Star Plus", "India", "Hindi");
INSERT INTO "TV_Channel" VALUES ("CNN", "United States", "English");
INSERT INTO "TV_Channel" VALUES ("Fox News", "United States", "English");
INSERT INTO "TV_Channel" VALUES ("ABC", "United States", "English");
INSERT INTO "TV_Channel" VALUES ("CBC", "Canada", "English");
INSERT INTO "TV_Channel" VALUES ("CTV", "Canada", "English");
INSERT INTO "TV_Channel" VALUES ("SBS", "Australia", "English");
INSERT INTO "TV_Channel" VALUES ("ABC Australia", "Australia", "English");
INSERT INTO "TV_Channel" VALUES ("TVNZ 1", "New Zealand", "English");
INSERT INTO "TV_Channel" VALUES ("TVNZ 2", "New Zealand", "English");
INSERT INTO "TV_Channel" VALUES ("SABC 1", "South Africa", "English");
INSERT INTO "TV_Channel" VALUES ("SABC 2", "South Africa", "English");
INSERT INTO "TV_Channel" VALUES ("Al Jazeera English", "Qatar", "English");
INSERT INTO "TV_Channel" VALUES ("Russia Today", "Russia", "English");
INSERT INTO "TV_Channel" VALUES ("DW English", "Germany", "English");
INSERT INTO "TV_Channel" VALUES ("CCTV News", "China", "English");
INSERT INTO "TV_Channel" VALUES ("NHK World-Japan", "Japan", "English");
INSERT INTO "Cartoon" VALUES ("1.0", "BBC One");
INSERT INTO "Cartoon" VALUES ("2.0", "ITV");
INSERT INTO "Cartoon" VALUES ("3.0", "Channel 4");
INSERT INTO "Cartoon" VALUES ("4.0", "Sky One");
INSERT INTO "Cartoon" VALUES ("5.0", "RTE One");
INSERT INTO "Cartoon" VALUES ("6.0", "TF1");
INSERT INTO "Cartoon" VALUES ("7.0", "ARD");
INSERT INTO "Cartoon" VALUES ("8.0", "NHK");
INSERT INTO "Cartoon" VALUES ("9.0", "CNN");
INSERT INTO "Cartoon" VALUES ("10.0", "ABC");
INSERT INTO "Cartoon" VALUES ("11.0", "CBC");
INSERT INTO "Cartoon" VALUES ("12.0", "SBS");
INSERT INTO "Cartoon" VALUES ("13.0", "TVNZ 1");
INSERT INTO "Cartoon" VALUES ("14.0", "SABC 1");
INSERT INTO "Cartoon" VALUES ("15.0", "Al Jazeera English");
INSERT INTO "Cartoon" VALUES ("16.0", "Russia Today");
INSERT INTO "Cartoon" VALUES ("17.0", "DW English");
INSERT INTO "Cartoon" VALUES ("18.0", "CCTV News");
INSERT INTO "Cartoon" VALUES ("19.0", "NHK World-Japan");
INSERT INTO "TV_series" VALUES ("101.0", "BBC One");
INSERT INTO "TV_series" VALUES ("102.0", "ITV");
INSERT INTO "TV_series" VALUES ("103.0", "Channel 4");
INSERT INTO "TV_series" VALUES ("104.0", "Sky One");
INSERT INTO "TV_series" VALUES ("105.0", "RTE One");
INSERT INTO "TV_series" VALUES ("106.0", "TV3");
INSERT INTO "TV_series" VALUES ("107.0", "TF1");
INSERT INTO "TV_series" VALUES ("108.0", "France 2");
INSERT INTO "TV_series" VALUES ("109.0", "ARD");
INSERT INTO "TV_series" VALUES ("110.0", "ZDF");
INSERT INTO "TV_series" VALUES ("111.0", "NHK");
INSERT INTO "TV_series" VALUES ("112.0", "CCTV-1");
INSERT INTO "TV_series" VALUES ("113.0", "Zee TV");
INSERT INTO "TV_series" VALUES ("114.0", "Star Plus");
INSERT INTO "TV_series" VALUES ("115.0", "CNN");
INSERT INTO "TV_series" VALUES ("116.0", "Fox News");
INSERT INTO "TV_series" VALUES ("117.0", "ABC");
INSERT INTO "TV_series" VALUES ("118.0", "CBC");
INSERT INTO "TV_series" VALUES ("119.0", "CTV");
INSERT INTO "TV_series" VALUES ("120.0", "SBS");
INSERT INTO "TV_series" VALUES ("121.0", "ABC Australia");
INSERT INTO "TV_series" VALUES ("122.0", "TVNZ 1");
INSERT INTO "TV_series" VALUES ("123.0", "TVNZ 2");
INSERT INTO "TV_series" VALUES ("124.0", "SABC 1");
INSERT INTO "TV_series" VALUES ("125.0", "SABC 2");
INSERT INTO "TV_series" VALUES ("126.0", "Al Jazeera English");
INSERT INTO "TV_series" VALUES ("127.0", "Russia Today");
INSERT INTO "TV_series" VALUES ("128.0", "DW English");
INSERT INTO "TV_series" VALUES ("129.0", "CCTV News");
INSERT INTO "TV_series" VALUES ("130.0", "NHK World-Japan");