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,
"weight" FLOAT,
PRIMARY KEY ("PetID")
);

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





INSERT INTO "Pets" VALUES ("1", "dog", "3", "15.5");
INSERT INTO "Pets" VALUES ("2", "dog", "1", "8.2");
INSERT INTO "Pets" VALUES ("3", "dog", "1", "7.9");
INSERT INTO "Pets" VALUES ("4", "cat", "2", "5.0");
INSERT INTO "Pets" VALUES ("5", "dog", "5", "20.0");
INSERT INTO "Pets" VALUES ("6", "parrot", "1", "0.3");
INSERT INTO "Pets" VALUES ("7", "dog", "2", "12.0");
INSERT INTO "Pets" VALUES ("8", "cat", "1", "4.5");
INSERT INTO "Pets" VALUES ("9", "dog", "1", "9.0");
INSERT INTO "Pets" VALUES ("10", "rabbit", "3", "2.5");
INSERT INTO "Student" VALUES ("1", "20", "M", "101");
INSERT INTO "Student" VALUES ("2", "22", "F", "102");
INSERT INTO "Student" VALUES ("3", "19", "M", "103");
INSERT INTO "Student" VALUES ("4", "21", "F", "101");
INSERT INTO "Student" VALUES ("5", "23", "M", "104");
INSERT INTO "Student" VALUES ("6", "18", "F", "102");
INSERT INTO "Student" VALUES ("7", "20", "M", "103");
INSERT INTO "Student" VALUES ("8", "19", "F", "104");
INSERT INTO "Student" VALUES ("9", "22", "M", "101");
INSERT INTO "Student" VALUES ("10", "18", "F", "103");