PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE countries(
  "countryid" INTEGER PRIMARY KEY AUTOINCREMENT,
  "country" TEXT,
  "mainlangid" INTEGER
);
INSERT INTO "countries" VALUES(1,'England',1);
INSERT INTO "countries" VALUES(2,'Ireland',1);
INSERT INTO "countries" VALUES(3,'France',4);
INSERT INTO "countries" VALUES(4,'Switzerland',5);
INSERT INTO "countries" VALUES(5,'Germany',5);
INSERT INTO "countries" VALUES(6,'Italy',6);
INSERT INTO "countries" VALUES(7,'Belgique',4);
INSERT INTO "countries" VALUES(8,'Spain',12);
CREATE TABLE langues(
  "langid"  INTEGER PRIMARY KEY AUTOINCREMENT,
  "langue" TEXT
);
INSERT INTO "langues" VALUES(1,'english');
INSERT INTO "langues" VALUES(2,'gaelic (Scotland)');
INSERT INTO "langues" VALUES(3,'gaelic (Ireland)');
INSERT INTO "langues" VALUES(4,'french');
INSERT INTO "langues" VALUES(5,'german');
INSERT INTO "langues" VALUES(6,'italian');
INSERT INTO "langues" VALUES(7,'romans');
INSERT INTO "langues" VALUES(8,'welsh');
INSERT INTO "langues" VALUES(9,'breton');
INSERT INTO "langues" VALUES(10,'provencal');
INSERT INTO "langues" VALUES(11,'flemish');
INSERT INTO "langues" VALUES(12,'spanish');
INSERT INTO "langues" VALUES(14,'japanese');
INSERT INTO "langues" VALUES(15,'catalan');
CREATE TABLE speaks (
  "countryid"  INTEGER NOT NULL,
  "langid" INTEGER NOT NULL,
  PRIMARY KEY ("countryid", "langid")
);
INSERT INTO "speaks" VALUES(1,1);
INSERT INTO "speaks" VALUES(1,8);
INSERT INTO "speaks" VALUES(2,1);
INSERT INTO "speaks" VALUES(2,3);
INSERT INTO "speaks" VALUES(3,4);
INSERT INTO "speaks" VALUES(3,9);
INSERT INTO "speaks" VALUES(3,10);
INSERT INTO "speaks" VALUES(4,4);
INSERT INTO "speaks" VALUES(4,5);
INSERT INTO "speaks" VALUES(4,6);
INSERT INTO "speaks" VALUES(4,7);
INSERT INTO "speaks" VALUES(5,5);
INSERT INTO "speaks" VALUES(6,6);
INSERT INTO "speaks" VALUES(7,4);
INSERT INTO "speaks" VALUES(7,11);
INSERT INTO "speaks" VALUES(8,6);
INSERT INTO "speaks" VALUES(8,12);
DELETE FROM sqlite_sequence;
INSERT INTO "sqlite_sequence" VALUES('countries',8);
INSERT INTO "sqlite_sequence" VALUES('langues',15);
COMMIT;
