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 "Pets" (
"PetID" INT,
"PetType" VARCHAR(20),
"pet_age" INT,
PRIMARY KEY ("PetID")
);

CREATE TABLE "Student" (
"StuID" INT,
"Age" INT,
"Sex" VARCHAR(1),
"city_code" VARCHAR(3),
PRIMARY KEY ("StuID")
);





INSERT INTO "Pets" VALUES ("1", "Dog", "5");
INSERT INTO "Pets" VALUES ("2", "Cat", "3");
INSERT INTO "Pets" VALUES ("3", "Dog", "8");
INSERT INTO "Pets" VALUES ("4", "Parrot", "2");
INSERT INTO "Pets" VALUES ("5", "Cat", "7");
INSERT INTO "Pets" VALUES ("6", "Fish", "1");
INSERT INTO "Pets" VALUES ("7", "Dog", "12");
INSERT INTO "Pets" VALUES ("8", "Parrot", "4");
INSERT INTO "Pets" VALUES ("9", "Fish", "3");
INSERT INTO "Pets" VALUES ("10", "Cat", "1");
INSERT INTO "Pets" VALUES ("11", "Dog", "0");
INSERT INTO "Pets" VALUES ("12", "Fish", "0");
INSERT INTO "Student" VALUES ("1", "20", "M", "NYC");
INSERT INTO "Student" VALUES ("2", "22", "F", "LAX");
INSERT INTO "Student" VALUES ("3", "19", "M", "CHI");
INSERT INTO "Student" VALUES ("4", "21", "F", "NYC");
INSERT INTO "Student" VALUES ("5", "23", "M", "LAX");
INSERT INTO "Student" VALUES ("6", "20", "F", "CHI");
INSERT INTO "Student" VALUES ("7", "22", "M", "NYC");
INSERT INTO "Student" VALUES ("8", "24", "F", "LAX");
INSERT INTO "Student" VALUES ("9", "18", "M", "CHI");
INSERT INTO "Student" VALUES ("10", "25", "F", "NYC");