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 "car_names" (
"MakeId" INT,
"Model" TEXT,
PRIMARY KEY ("MakeId")
);

CREATE TABLE "cars_data" (
"Id" INT,
"Cylinders" INT,
"Edispl" FLOAT,
"Horsepower" TEXT,
PRIMARY KEY ("Id")
);





INSERT INTO "car_names" VALUES ("1", "Toyota Corolla");
INSERT INTO "car_names" VALUES ("2", "Honda Civic");
INSERT INTO "car_names" VALUES ("3", "Ford F-150");
INSERT INTO "car_names" VALUES ("4", "Chevrolet Silverado");
INSERT INTO "car_names" VALUES ("5", "BMW 3 Series");
INSERT INTO "car_names" VALUES ("6", "Mercedes-Benz C-Class");
INSERT INTO "car_names" VALUES ("7", "Audi A4");
INSERT INTO "car_names" VALUES ("8", "Nissan Altima");
INSERT INTO "car_names" VALUES ("9", "Hyundai Elantra");
INSERT INTO "car_names" VALUES ("10", "Kia Forte");
INSERT INTO "car_names" VALUES ("11", "Subaru Outback");
INSERT INTO "car_names" VALUES ("12", "Jeep Grand Cherokee");
INSERT INTO "car_names" VALUES ("13", "Dodge Ram 1500");
INSERT INTO "car_names" VALUES ("14", "Volkswagen Jetta");
INSERT INTO "car_names" VALUES ("15", "Mazda 3");
INSERT INTO "car_names" VALUES ("16", "Lexus RX");
INSERT INTO "car_names" VALUES ("17", "Acura MDX");
INSERT INTO "car_names" VALUES ("18", "Volvo XC90");
INSERT INTO "car_names" VALUES ("19", "Porsche 911");
INSERT INTO "car_names" VALUES ("20", "Ferrari 488");
INSERT INTO "cars_data" VALUES ("1", "4", "1.8", "139");
INSERT INTO "cars_data" VALUES ("2", "4", "2.0", "158");
INSERT INTO "cars_data" VALUES ("3", "6", "3.5", "290");
INSERT INTO "cars_data" VALUES ("4", "8", "5.3", "355");
INSERT INTO "cars_data" VALUES ("5", "4", "2.0", "255");
INSERT INTO "cars_data" VALUES ("6", "4", "2.0", "255");
INSERT INTO "cars_data" VALUES ("7", "4", "2.0", "201");
INSERT INTO "cars_data" VALUES ("8", "4", "2.5", "188");
INSERT INTO "cars_data" VALUES ("9", "4", "2.0", "147");
INSERT INTO "cars_data" VALUES ("10", "4", "2.0", "147");
INSERT INTO "cars_data" VALUES ("11", "4", "2.5", "182");
INSERT INTO "cars_data" VALUES ("12", "6", "3.6", "293");
INSERT INTO "cars_data" VALUES ("13", "8", "5.7", "395");
INSERT INTO "cars_data" VALUES ("14", "4", "1.4", "158");
INSERT INTO "cars_data" VALUES ("15", "4", "2.5", "191");
INSERT INTO "cars_data" VALUES ("16", "6", "3.5", "295");
INSERT INTO "cars_data" VALUES ("17", "6", "3.5", "290");
INSERT INTO "cars_data" VALUES ("18", "4", "2.0", "250");
INSERT INTO "cars_data" VALUES ("19", "6", "3.0", "379");
INSERT INTO "cars_data" VALUES ("20", "8", "3.9", "661");
INSERT INTO "cars_data" VALUES ("21", "6", "3.0", "300");
INSERT INTO "cars_data" VALUES ("22", "8", "4.0", "450");
INSERT INTO "cars_data" VALUES ("23", "6", "3.0", "335");
INSERT INTO "cars_data" VALUES ("24", "8", "6.2", "420");
INSERT INTO "cars_data" VALUES ("25", "6", "3.0", "382");
INSERT INTO "cars_data" VALUES ("26", "8", "4.0", "503");
INSERT INTO "cars_data" VALUES ("27", "6", "3.0", "340");
INSERT INTO "cars_data" VALUES ("28", "8", "5.0", "400");
INSERT INTO "cars_data" VALUES ("29", "6", "3.0", "300");
INSERT INTO "cars_data" VALUES ("30", "8", "6.4", "485");