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_makers" (
"Id" INT UNIQUE,
"FullName" TEXT,
"Country" TEXT,
PRIMARY KEY ("Id"),
FOREIGN KEY ("Country") REFERENCES "countries"("CountryId")
);

CREATE TABLE "car_names" (
"MakeId" INT,
"Make" TEXT,
PRIMARY KEY ("MakeId")
);

CREATE TABLE "continents" (
"ContId" INT UNIQUE,
"Continent" TEXT,
PRIMARY KEY ("ContId")
);

CREATE TABLE "countries" (
"CountryId" INT UNIQUE,
"CountryName" TEXT,
"Continent" INT,
PRIMARY KEY ("CountryId"),
FOREIGN KEY ("Continent") REFERENCES "continents"("ContId")
);

CREATE TABLE "model_list" (
"ModelId" INT,
"Model" TEXT UNIQUE,
PRIMARY KEY ("ModelId")
);





INSERT INTO "continents" VALUES ("1", "Asia");
INSERT INTO "continents" VALUES ("2", "Europe");
INSERT INTO "continents" VALUES ("3", "North America");
INSERT INTO "continents" VALUES ("4", "South America");
INSERT INTO "continents" VALUES ("5", "Africa");
INSERT INTO "continents" VALUES ("6", "Oceania");
INSERT INTO "countries" VALUES ("1", "Japan", "1");
INSERT INTO "countries" VALUES ("2", "Germany", "2");
INSERT INTO "countries" VALUES ("3", "USA", "3");
INSERT INTO "countries" VALUES ("4", "France", "2");
INSERT INTO "countries" VALUES ("5", "Italy", "2");
INSERT INTO "countries" VALUES ("6", "South Korea", "1");
INSERT INTO "countries" VALUES ("7", "UK", "2");
INSERT INTO "countries" VALUES ("8", "China", "1");
INSERT INTO "countries" VALUES ("9", "Brazil", "4");
INSERT INTO "countries" VALUES ("10", "Australia", "6");
INSERT INTO "countries" VALUES ("11", "India", "1");
INSERT INTO "countries" VALUES ("12", "Mexico", "3");
INSERT INTO "countries" VALUES ("13", "Canada", "3");
INSERT INTO "countries" VALUES ("14", "South Africa", "5");
INSERT INTO "car_makers" VALUES ("1", "Toyota", "1");
INSERT INTO "car_makers" VALUES ("2", "Volkswagen", "2");
INSERT INTO "car_makers" VALUES ("3", "Ford", "3");
INSERT INTO "car_makers" VALUES ("4", "Renault", "4");
INSERT INTO "car_makers" VALUES ("5", "Fiat", "5");
INSERT INTO "car_makers" VALUES ("6", "Hyundai", "6");
INSERT INTO "car_makers" VALUES ("7", "BMW", "2");
INSERT INTO "car_makers" VALUES ("8", "Honda", "1");
INSERT INTO "car_makers" VALUES ("9", "Mercedes-Benz", "2");
INSERT INTO "car_makers" VALUES ("10", "Nissan", "1");
INSERT INTO "car_makers" VALUES ("11", "General Motors", "3");
INSERT INTO "car_makers" VALUES ("12", "Peugeot", "4");
INSERT INTO "car_makers" VALUES ("13", "Audi", "2");
INSERT INTO "car_makers" VALUES ("14", "Kia", "6");
INSERT INTO "car_makers" VALUES ("15", "Tata Motors", "11");
INSERT INTO "car_makers" VALUES ("16", "Chery", "8");
INSERT INTO "car_makers" VALUES ("17", "Tesla", "3");
INSERT INTO "car_makers" VALUES ("18", "Volvo", "2");
INSERT INTO "car_makers" VALUES ("19", "Subaru", "1");
INSERT INTO "car_makers" VALUES ("20", "Mazda", "1");
INSERT INTO "car_makers" VALUES ("21", "Chrysler", "3");
INSERT INTO "car_makers" VALUES ("22", "Jaguar", "7");
INSERT INTO "car_makers" VALUES ("23", "Land Rover", "7");
INSERT INTO "car_makers" VALUES ("24", "Mahindra", "11");
INSERT INTO "car_makers" VALUES ("25", "BYD", "8");
INSERT INTO "car_makers" VALUES ("26", "GWM", "8");
INSERT INTO "car_makers" VALUES ("27", "Chevrolet", "3");
INSERT INTO "car_makers" VALUES ("28", "Dodge", "3");
INSERT INTO "car_makers" VALUES ("29", "Jeep", "3");
INSERT INTO "car_makers" VALUES ("30", "Ram", "3");
INSERT INTO "car_makers" VALUES ("31", "Acura", "1");
INSERT INTO "car_makers" VALUES ("32", "Lexus", "1");
INSERT INTO "car_makers" VALUES ("33", "Infiniti", "1");
INSERT INTO "car_makers" VALUES ("34", "Porsche", "2");
INSERT INTO "car_makers" VALUES ("35", "Skoda", "2");
INSERT INTO "car_makers" VALUES ("36", "Seat", "2");
INSERT INTO "car_makers" VALUES ("37", "Alfa Romeo", "5");
INSERT INTO "car_makers" VALUES ("38", "Maserati", "5");
INSERT INTO "car_makers" VALUES ("39", "Ferrari", "5");
INSERT INTO "car_makers" VALUES ("40", "Lamborghini", "5");
INSERT INTO "car_makers" VALUES ("41", "Bugatti", "4");
INSERT INTO "car_makers" VALUES ("42", "Rolls-Royce", "7");
INSERT INTO "car_makers" VALUES ("43", "Bentley", "7");
INSERT INTO "car_makers" VALUES ("44", "Aston Martin", "7");
INSERT INTO "car_makers" VALUES ("45", "McLaren", "7");
INSERT INTO "car_makers" VALUES ("46", "Lotus", "7");
INSERT INTO "car_makers" VALUES ("47", "SsangYong", "6");
INSERT INTO "car_makers" VALUES ("48", "Geely", "8");
INSERT INTO "car_makers" VALUES ("49", "Changan", "8");
INSERT INTO "car_makers" VALUES ("50", "FAW", "8");
INSERT INTO "car_makers" VALUES ("51", "JAC", "8");
INSERT INTO "car_makers" VALUES ("52", "Haval", "8");
INSERT INTO "car_makers" VALUES ("53", "Wuling", "8");
INSERT INTO "car_makers" VALUES ("54", "BYD Auto", "8");
INSERT INTO "car_makers" VALUES ("55", "GAC Group", "8");
INSERT INTO "car_makers" VALUES ("56", "Dongfeng", "8");
INSERT INTO "car_makers" VALUES ("57", "SAIC Motor", "8");
INSERT INTO "car_makers" VALUES ("58", "BAIC Group", "8");
INSERT INTO "car_makers" VALUES ("59", "Jetour", "8");
INSERT INTO "car_makers" VALUES ("60", "Lynk & Co", "8");
INSERT INTO "car_makers" VALUES ("61", "Polestar", "2");
INSERT INTO "car_makers" VALUES ("62", "Cupra", "2");
INSERT INTO "car_makers" VALUES ("63", "Dacia", "4");
INSERT INTO "car_makers" VALUES ("64", "Lada", "2");
INSERT INTO "car_makers" VALUES ("65", "Opel", "2");
INSERT INTO "car_makers" VALUES ("66", "Vauxhall", "7");
INSERT INTO "car_makers" VALUES ("67", "Citroen", "4");
INSERT INTO "car_makers" VALUES ("68", "DS Automobiles", "4");
INSERT INTO "car_makers" VALUES ("69", "Suzuki", "1");
INSERT INTO "car_makers" VALUES ("70", "Mitsubishi", "1");
INSERT INTO "car_makers" VALUES ("71", "Isuzu", "1");
INSERT INTO "car_makers" VALUES ("72", "Daihatsu", "1");
INSERT INTO "car_makers" VALUES ("73", "Proton", "1");
INSERT INTO "car_makers" VALUES ("74", "Perodua", "1");
INSERT INTO "car_makers" VALUES ("75", "Tofas", "2");
INSERT INTO "car_makers" VALUES ("76", "Anadolu Isuzu", "2");
INSERT INTO "car_makers" VALUES ("77", "Karsan", "2");
INSERT INTO "car_makers" VALUES ("78", "TOGG", "2");
INSERT INTO "car_makers" VALUES ("79", "VinFast", "1");
INSERT INTO "car_makers" VALUES ("80", "Lucid Motors", "3");
INSERT INTO "car_makers" VALUES ("81", "Rivian", "3");
INSERT INTO "car_makers" VALUES ("82", "Fisker", "3");
INSERT INTO "car_makers" VALUES ("83", "Karma Automotive", "3");
INSERT INTO "car_makers" VALUES ("84", "Canoo", "3");
INSERT INTO "car_makers" VALUES ("85", "Nikola", "3");
INSERT INTO "car_makers" VALUES ("86", "Aptera Motors", "3");
INSERT INTO "car_makers" VALUES ("87", "SSC North America", "3");
INSERT INTO "car_makers" VALUES ("88", "Hennessey", "3");
INSERT INTO "car_makers" VALUES ("89", "Koenigsegg", "2");
INSERT INTO "car_makers" VALUES ("90", "Rimac Automobili", "2");
INSERT INTO "car_makers" VALUES ("91", "Zenvo", "2");
INSERT INTO "car_makers" VALUES ("92", "Pagani", "5");
INSERT INTO "car_makers" VALUES ("93", "De Tomaso", "5");
INSERT INTO "car_makers" VALUES ("94", "Gumpert", "2");
INSERT INTO "car_makers" VALUES ("95", "Wiesmann", "2");
INSERT INTO "car_makers" VALUES ("96", "Artega", "2");
INSERT INTO "car_makers" VALUES ("97", "Ruf Automobile", "2");
INSERT INTO "car_makers" VALUES ("98", "Alpina", "2");
INSERT INTO "car_makers" VALUES ("99", "Morgan", "7");
INSERT INTO "car_makers" VALUES ("100", "Caterham", "7");
INSERT INTO "car_names" VALUES ("1", "Toyota");
INSERT INTO "car_names" VALUES ("2", "Volkswagen");
INSERT INTO "car_names" VALUES ("3", "Ford");
INSERT INTO "car_names" VALUES ("4", "Renault");
INSERT INTO "car_names" VALUES ("5", "Fiat");
INSERT INTO "car_names" VALUES ("6", "Hyundai");
INSERT INTO "car_names" VALUES ("7", "BMW");
INSERT INTO "car_names" VALUES ("8", "Honda");
INSERT INTO "car_names" VALUES ("9", "Mercedes-Benz");
INSERT INTO "car_names" VALUES ("10", "Nissan");
INSERT INTO "car_names" VALUES ("11", "General Motors");
INSERT INTO "car_names" VALUES ("12", "Peugeot");
INSERT INTO "car_names" VALUES ("13", "Audi");
INSERT INTO "car_names" VALUES ("14", "Kia");
INSERT INTO "car_names" VALUES ("15", "Tata Motors");
INSERT INTO "car_names" VALUES ("16", "Chery");
INSERT INTO "car_names" VALUES ("17", "Tesla");
INSERT INTO "car_names" VALUES ("18", "Volvo");
INSERT INTO "car_names" VALUES ("19", "Subaru");
INSERT INTO "car_names" VALUES ("20", "Mazda");
INSERT INTO "car_names" VALUES ("21", "Chrysler");
INSERT INTO "car_names" VALUES ("22", "Jaguar");
INSERT INTO "car_names" VALUES ("23", "Land Rover");
INSERT INTO "car_names" VALUES ("24", "Mahindra");
INSERT INTO "car_names" VALUES ("25", "BYD");
INSERT INTO "car_names" VALUES ("26", "GWM");
INSERT INTO "car_names" VALUES ("27", "Chevrolet");
INSERT INTO "car_names" VALUES ("28", "Dodge");
INSERT INTO "car_names" VALUES ("29", "Jeep");
INSERT INTO "car_names" VALUES ("30", "Ram");
INSERT INTO "car_names" VALUES ("31", "Acura");
INSERT INTO "car_names" VALUES ("32", "Lexus");
INSERT INTO "car_names" VALUES ("33", "Infiniti");
INSERT INTO "car_names" VALUES ("34", "Porsche");
INSERT INTO "car_names" VALUES ("35", "Skoda");
INSERT INTO "car_names" VALUES ("36", "Seat");
INSERT INTO "car_names" VALUES ("37", "Alfa Romeo");
INSERT INTO "car_names" VALUES ("38", "Maserati");
INSERT INTO "car_names" VALUES ("39", "Ferrari");
INSERT INTO "car_names" VALUES ("40", "Lamborghini");
INSERT INTO "car_names" VALUES ("41", "Bugatti");
INSERT INTO "car_names" VALUES ("42", "Rolls-Royce");
INSERT INTO "car_names" VALUES ("43", "Bentley");
INSERT INTO "car_names" VALUES ("44", "Aston Martin");
INSERT INTO "car_names" VALUES ("45", "McLaren");
INSERT INTO "car_names" VALUES ("46", "Lotus");
INSERT INTO "car_names" VALUES ("47", "SsangYong");
INSERT INTO "car_names" VALUES ("48", "Geely");
INSERT INTO "car_names" VALUES ("49", "Changan");
INSERT INTO "car_names" VALUES ("50", "FAW");
INSERT INTO "car_names" VALUES ("51", "JAC");
INSERT INTO "car_names" VALUES ("52", "Haval");
INSERT INTO "car_names" VALUES ("53", "Wuling");
INSERT INTO "car_names" VALUES ("54", "BYD Auto");
INSERT INTO "car_names" VALUES ("55", "GAC Group");
INSERT INTO "car_names" VALUES ("56", "Dongfeng");
INSERT INTO "car_names" VALUES ("57", "SAIC Motor");
INSERT INTO "car_names" VALUES ("58", "BAIC Group");
INSERT INTO "car_names" VALUES ("59", "Jetour");
INSERT INTO "car_names" VALUES ("60", "Lynk & Co");
INSERT INTO "car_names" VALUES ("61", "Polestar");
INSERT INTO "car_names" VALUES ("62", "Cupra");
INSERT INTO "car_names" VALUES ("63", "Dacia");
INSERT INTO "car_names" VALUES ("64", "Lada");
INSERT INTO "car_names" VALUES ("65", "Opel");
INSERT INTO "car_names" VALUES ("66", "Vauxhall");
INSERT INTO "car_names" VALUES ("67", "Citroen");
INSERT INTO "car_names" VALUES ("68", "DS Automobiles");
INSERT INTO "car_names" VALUES ("69", "Suzuki");
INSERT INTO "car_names" VALUES ("70", "Mitsubishi");
INSERT INTO "car_names" VALUES ("71", "Isuzu");
INSERT INTO "car_names" VALUES ("72", "Daihatsu");
INSERT INTO "car_names" VALUES ("73", "Proton");
INSERT INTO "car_names" VALUES ("74", "Perodua");
INSERT INTO "car_names" VALUES ("75", "Tofas");
INSERT INTO "car_names" VALUES ("76", "Anadolu Isuzu");
INSERT INTO "car_names" VALUES ("77", "Karsan");
INSERT INTO "car_names" VALUES ("78", "TOGG");
INSERT INTO "car_names" VALUES ("79", "VinFast");
INSERT INTO "car_names" VALUES ("80", "Lucid Motors");
INSERT INTO "car_names" VALUES ("81", "Rivian");
INSERT INTO "car_names" VALUES ("82", "Fisker");
INSERT INTO "car_names" VALUES ("83", "Karma Automotive");
INSERT INTO "car_names" VALUES ("84", "Canoo");
INSERT INTO "car_names" VALUES ("85", "Nikola");
INSERT INTO "car_names" VALUES ("86", "Aptera Motors");
INSERT INTO "car_names" VALUES ("87", "SSC North America");
INSERT INTO "car_names" VALUES ("88", "Hennessey");
INSERT INTO "car_names" VALUES ("89", "Koenigsegg");
INSERT INTO "car_names" VALUES ("90", "Rimac Automobili");
INSERT INTO "car_names" VALUES ("91", "Zenvo");
INSERT INTO "car_names" VALUES ("92", "Pagani");
INSERT INTO "car_names" VALUES ("93", "De Tomaso");
INSERT INTO "car_names" VALUES ("94", "Gumpert");
INSERT INTO "car_names" VALUES ("95", "Wiesmann");
INSERT INTO "car_names" VALUES ("96", "Artega");
INSERT INTO "car_names" VALUES ("97", "Ruf Automobile");
INSERT INTO "car_names" VALUES ("98", "Alpina");
INSERT INTO "car_names" VALUES ("99", "Morgan");
INSERT INTO "car_names" VALUES ("100", "Caterham");
INSERT INTO "model_list" VALUES ("1", "Camry");
INSERT INTO "model_list" VALUES ("2", "Golf");
INSERT INTO "model_list" VALUES ("3", "F-150");
INSERT INTO "model_list" VALUES ("4", "Clio");
INSERT INTO "model_list" VALUES ("5", "500");
INSERT INTO "model_list" VALUES ("6", "Elantra");
INSERT INTO "model_list" VALUES ("7", "3 Series");
INSERT INTO "model_list" VALUES ("8", "Civic");
INSERT INTO "model_list" VALUES ("9", "C-Class");
INSERT INTO "model_list" VALUES ("10", "Altima");
INSERT INTO "model_list" VALUES ("11", "Silverado");
INSERT INTO "model_list" VALUES ("12", "208");
INSERT INTO "model_list" VALUES ("13", "A4");
INSERT INTO "model_list" VALUES ("14", "Sportage");
INSERT INTO "model_list" VALUES ("15", "Nexon");
INSERT INTO "model_list" VALUES ("16", "Tiggo");
INSERT INTO "model_list" VALUES ("17", "Model 3");
INSERT INTO "model_list" VALUES ("18", "XC60");
INSERT INTO "model_list" VALUES ("19", "Forester");
INSERT INTO "model_list" VALUES ("20", "CX-5");
INSERT INTO "model_list" VALUES ("21", "300");
INSERT INTO "model_list" VALUES ("22", "XF");
INSERT INTO "model_list" VALUES ("23", "Discovery");
INSERT INTO "model_list" VALUES ("24", "XUV500");
INSERT INTO "model_list" VALUES ("25", "Han");
INSERT INTO "model_list" VALUES ("26", "H6");
INSERT INTO "model_list" VALUES ("27", "Malibu");
INSERT INTO "model_list" VALUES ("28", "Charger");
INSERT INTO "model_list" VALUES ("29", "Wrangler");
INSERT INTO "model_list" VALUES ("30", "1500");
INSERT INTO "model_list" VALUES ("31", "MDX");
INSERT INTO "model_list" VALUES ("32", "RX");
INSERT INTO "model_list" VALUES ("33", "Q50");
INSERT INTO "model_list" VALUES ("34", "911");
INSERT INTO "model_list" VALUES ("35", "Octavia");
INSERT INTO "model_list" VALUES ("36", "Leon");
INSERT INTO "model_list" VALUES ("37", "Giulia");
INSERT INTO "model_list" VALUES ("38", "Ghibli");
INSERT INTO "model_list" VALUES ("39", "488");
INSERT INTO "model_list" VALUES ("40", "Huracan");
INSERT INTO "model_list" VALUES ("41", "Chiron");
INSERT INTO "model_list" VALUES ("42", "Phantom");
INSERT INTO "model_list" VALUES ("43", "Continental GT");
INSERT INTO "model_list" VALUES ("44", "DB11");
INSERT INTO "model_list" VALUES ("45", "720S");
INSERT INTO "model_list" VALUES ("46", "Evora");
INSERT INTO "model_list" VALUES ("47", "Rexton");
INSERT INTO "model_list" VALUES ("48", "Coolray");
INSERT INTO "model_list" VALUES ("49", "CS75");
INSERT INTO "model_list" VALUES ("50", "Bestune T77");
INSERT INTO "model_list" VALUES ("51", "JAC S3");
INSERT INTO "model_list" VALUES ("52", "Haval H6");
INSERT INTO "model_list" VALUES ("53", "Wuling Hongguang");
INSERT INTO "model_list" VALUES ("54", "BYD Qin");
INSERT INTO "model_list" VALUES ("55", "Trumpchi GS4");
INSERT INTO "model_list" VALUES ("56", "Dongfeng Fengshen A60");
INSERT INTO "model_list" VALUES ("57", "Roewe RX5");
INSERT INTO "model_list" VALUES ("58", "Beijing X7");
INSERT INTO "model_list" VALUES ("59", "Jetour X70");
INSERT INTO "model_list" VALUES ("60", "Lynk & Co 01");
INSERT INTO "model_list" VALUES ("61", "Polestar 2");
INSERT INTO "model_list" VALUES ("62", "Formentor");
INSERT INTO "model_list" VALUES ("63", "Sandero");
INSERT INTO "model_list" VALUES ("64", "Granta");
INSERT INTO "model_list" VALUES ("65", "Corsa");
INSERT INTO "model_list" VALUES ("66", "Corsa");
INSERT INTO "model_list" VALUES ("67", "C3");
INSERT INTO "model_list" VALUES ("68", "DS 7 Crossback");
INSERT INTO "model_list" VALUES ("69", "Swift");
INSERT INTO "model_list" VALUES ("70", "Outlander");
INSERT INTO "model_list" VALUES ("71", "D-Max");
INSERT INTO "model_list" VALUES ("72", "Terios");
INSERT INTO "model_list" VALUES ("73", "Saga");
INSERT INTO "model_list" VALUES ("74", "Myvi");
INSERT INTO "model_list" VALUES ("75", "Egea");
INSERT INTO "model_list" VALUES ("76", "D-Max");
INSERT INTO "model_list" VALUES ("77", "Jest");
INSERT INTO "model_list" VALUES ("78", "T10X");
INSERT INTO "model_list" VALUES ("79", "VF 8");
INSERT INTO "model_list" VALUES ("80", "Air");
INSERT INTO "model_list" VALUES ("81", "R1T");
INSERT INTO "model_list" VALUES ("82", "Ocean");
INSERT INTO "model_list" VALUES ("83", "Revero");
INSERT INTO "model_list" VALUES ("84", "MPDV");
INSERT INTO "model_list" VALUES ("85", "Badger");
INSERT INTO "model_list" VALUES ("86", "Paradigm");
INSERT INTO "model_list" VALUES ("87", "Tuatara");
INSERT INTO "model_list" VALUES ("88", "Venom F5");
INSERT INTO "model_list" VALUES ("89", "Jesko");
INSERT INTO "model_list" VALUES ("90", "Nevera");
INSERT INTO "model_list" VALUES ("91", "TSR-S");
INSERT INTO "model_list" VALUES ("92", "Huayra");
INSERT INTO "model_list" VALUES ("93", "P72");
INSERT INTO "model_list" VALUES ("94", "Apollo");
INSERT INTO "model_list" VALUES ("95", "GT MF4");
INSERT INTO "model_list" VALUES ("96", "GT");
INSERT INTO "model_list" VALUES ("97", "CTR3");
INSERT INTO "model_list" VALUES ("98", "B7");
INSERT INTO "model_list" VALUES ("99", "Plus Four");
INSERT INTO "model_list" VALUES ("100", "Seven");