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", "3");
INSERT INTO "Pets" VALUES ("2", "Dog", "7");
INSERT INTO "Pets" VALUES ("3", "Dog", "12");
INSERT INTO "Pets" VALUES ("4", "Dog", "1");
INSERT INTO "Pets" VALUES ("5", "Cat", "2");
INSERT INTO "Pets" VALUES ("6", "Cat", "5");
INSERT INTO "Pets" VALUES ("7", "Cat", "9");
INSERT INTO "Pets" VALUES ("8", "Cat", "15");
INSERT INTO "Pets" VALUES ("9", "Bird", "1");
INSERT INTO "Pets" VALUES ("10", "Bird", "4");
INSERT INTO "Pets" VALUES ("11", "Bird", "6");
INSERT INTO "Pets" VALUES ("12", "Bird", "8");
INSERT INTO "Pets" VALUES ("13", "Fish", "1");
INSERT INTO "Pets" VALUES ("14", "Fish", "2");
INSERT INTO "Pets" VALUES ("15", "Fish", "3");
INSERT INTO "Pets" VALUES ("16", "Fish", "4");
INSERT INTO "Pets" VALUES ("17", "Rabbit", "2");
INSERT INTO "Pets" VALUES ("18", "Rabbit", "5");
INSERT INTO "Pets" VALUES ("19", "Rabbit", "7");
INSERT INTO "Pets" VALUES ("20", "Rabbit", "10");
INSERT INTO "Pets" VALUES ("21", "Hamster", "1");
INSERT INTO "Pets" VALUES ("22", "Hamster", "2");
INSERT INTO "Pets" VALUES ("23", "Hamster", "3");
INSERT INTO "Pets" VALUES ("24", "Hamster", "4");
INSERT INTO "Pets" VALUES ("25", "Turtle", "20");
INSERT INTO "Pets" VALUES ("26", "Turtle", "35");
INSERT INTO "Pets" VALUES ("27", "Turtle", "50");
INSERT INTO "Pets" VALUES ("28", "Turtle", "15");