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),
PRIMARY KEY ("StuID")
);





INSERT INTO "Pets" VALUES ("1", "Dog", "5", "20.5");
INSERT INTO "Pets" VALUES ("2", "Cat", "3", "8.2");
INSERT INTO "Pets" VALUES ("3", "Dog", "12", "25.0");
INSERT INTO "Pets" VALUES ("4", "Parrot", "2", "0.5");
INSERT INTO "Pets" VALUES ("5", "Cat", "15", "9.0");
INSERT INTO "Pets" VALUES ("6", "Dog", "1", "10.0");
INSERT INTO "Pets" VALUES ("7", "Rabbit", "4", "2.3");
INSERT INTO "Pets" VALUES ("8", "Rabbit", "7", "3.0");
INSERT INTO "Pets" VALUES ("9", "Parrot", "10", "0.7");
INSERT INTO "Pets" VALUES ("10", "Cat", "0", "7.5");
INSERT INTO "Pets" VALUES ("11", "Dog", "20", "30.0");
INSERT INTO "Pets" VALUES ("12", "Cat", "20", "10.0");
INSERT INTO "Pets" VALUES ("13", "Dog", "0", "15.0");
INSERT INTO "Pets" VALUES ("14", "Parrot", "0", "0.4");
INSERT INTO "Pets" VALUES ("15", "Rabbit", "12", "3.5");
INSERT INTO "Student" VALUES ("1", "20", "M");
INSERT INTO "Student" VALUES ("2", "22", "F");
INSERT INTO "Student" VALUES ("3", "19", "M");
INSERT INTO "Student" VALUES ("4", "21", "F");
INSERT INTO "Student" VALUES ("5", "23", "M");
INSERT INTO "Student" VALUES ("6", "20", "F");
INSERT INTO "Student" VALUES ("7", "18", "M");
INSERT INTO "Student" VALUES ("8", "22", "F");
INSERT INTO "Student" VALUES ("9", "19", "M");
INSERT INTO "Student" VALUES ("10", "21", "F");