-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.vindecode_2015`
(
  state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC)."),
  consecutive_number INT64 OPTIONS(description="This data element is the unique case number assigned to each crash. It appears on each data file and is used to merge information from the data files together."),
  vehicle_number INT64 OPTIONS(description="This data element is the consecutive number assigned to each vehicle in the case. This data element appears on each vehicle level data file and is used in conjunction with the ST_CASE data element to merge information from vehicle level data files."),
  vehicle_make STRING OPTIONS(description="Contains the Polk standardized abbreviation for the OEM's vehicle make. The vehicle make generally contains what the general public usually considers to be a vehicle brand name, for example, Chrysler, Dodge, Ford, Mercury, Toyota, GMC, Chevy, etc."),
  marketing_year INT64 OPTIONS(description="The marketing year defined by the OEM within which the vehicle was produced. The value contained in this attribute may not always match the calendar year in which the vehicle was actually manufactured. Many OEMs release models prior to calendar year."),
  vehicle_type_code STRING OPTIONS(description="A Polk assigned code that defines the type of a vehicle represented by a specific VIN. For example: M,P,C or T."),
  vehicle_type STRING OPTIONS(description="The description of the Polk assigned code for the vehicle type code. For example: passenger, truck, motorcycle, commercial trailer."),
  make_name STRING OPTIONS(description="(Make- Name) Full name of the make (i.e. Chevrolet)"),
  model_code STRING OPTIONS(description="(Model Code) description"),
  vehicle_trim STRING OPTIONS(description="The Trim of the vehicle"),
  vehicle_trim_1 STRING OPTIONS(description="The trim of the vehicle. This field is used when a VIN Pattern could have more than 1 trim assigned."),
  vehicle_trim_2 STRING OPTIONS(description="The trim of the vehicle. This field is used when a VIN Pattern could have more than 2 trims assigned."),
  vehicle_trim_3 STRING OPTIONS(description="The trim of the vehicle. This field is used when a VIN Pattern could have more than 3 trims assigned."),
  vehicle_trim_4 STRING OPTIONS(description="The trim of the vehicle. This field is used when a VIN Pattern could have more than 4 trims assigned."),
  body_style_code STRING OPTIONS(description="A Polk assigned code that describes the body style of the vehicle. For example, CP=Coupe."),
  body_style STRING OPTIONS(description="The description of the Polk assigned code Body Style Code For example: Coupe"),
  num_of_doors INT64 OPTIONS(description="The number of doors the vehicle has"),
  number_of_wheels INT64 OPTIONS(description="The number of wheel ends on the vehicle. For example in a 6x4 configuration this would be the 6."),
  num_of_wheels_by_power_train INT64 OPTIONS(description="Number of wheels driven by the power train. For example in a 6x4 configuration this would be the 4."),
  vehicle_manufacturer_code STRING OPTIONS(description="(Vehicle Manufacturer Name) Standard abbreviation of the name of the vehicle manufacturer, i.e. General Motors, as defined by the National Crime Information Center"),
  vehicle_manufacturer_name STRING OPTIONS(description="(Vehicle Manufacturer Name) The name of the vehicle manufacturer, i.e. General Motors, as defined by the National Crime Information Center"),
  displacement_cid INT64 OPTIONS(description="(Displacement CID) displacement in cubic inches. This is a rounded, marketing value, like 302 cubic inches, instead of 4967 cc."),
  displacement_cc INT64 OPTIONS(description="(Displacement CC) displacement in cubic centimeters. We intend to use this as the definitive, exact displacement value, i.e. 4967 cc."),
  cylinder_count_code STRING OPTIONS(description="Contains a code that represents the number of cylinders a vehicle's combustion engine can have."),
  cycle_count INT64 OPTIONS(description="(Cycle Count) Refers to the cycle or stroke of an engine. 2-strokes are lightweight and simpler, but they burn oil, by design. Few cars on the road in North America are two-strokes, the last one offered was a 1967 Saab."),
  fuel_code STRING OPTIONS(description="(Fuel) What an internal combustion burns to move a piston in a cylinder"),
  fuel STRING OPTIONS(description="(Fuel) description"),
  type_of_fuel_code STRING OPTIONS(description="The type of fuel injection"),
  type_of_fuel STRING OPTIONS(description="The type of fuel injection used by a vehicle. For example, Direct, Throttle body"),
  carburetion_types_code STRING OPTIONS(description="Carburetion types include \"Carburetor”, “Fuel Injection”, N/A"),
  carburetion_types STRING OPTIONS(description="The description of the Polk assigned code which identifies the vehicle carburetion type. For example Carburetor, Fuel Injection, Unknown or Electric."),
  num_of_barrels STRING OPTIONS(description="The number of barrels on a carbureted engine."),
  gross_vehicle_weights_range_code INT64 OPTIONS(description="Contains a code that identifies the Polk standard groupings of gross vehicle weights to which a vehicle may belong. This information is typically captured only for trucks."),
  gross_vehicle_weights_range STRING OPTIONS(description="The description for the manufacturers assigned Gross Vehicle Weight (GVW) for trucks. This rating may or may not equal the actual GVW."),
  distance_between_axles_for_base_model FLOAT64 OPTIONS(description="Contains the distance between the front and rear axles of a vehicle in inches of the base model of the vehicle."),
  distance_between_axles_for_particular_series STRING OPTIONS(description="Contains the longest distance between the front and rear axles of a vehicle in inches for a particular series of that vehicle."),
  front_tire INT64 OPTIONS(description="(Front Tire) More specific tire description (ex. Michelin Eagle P245/40ZR)"),
  front_tire_pressure INT64 OPTIONS(description="(Front Tire Pressure) Vehicle Mfr. recommendation for tire pressure, in pounds/sq. in."),
  front_tire_size_code STRING OPTIONS(description="Describes the size of the front tire. For example \"17R245\""),
  front_tire_size STRING OPTIONS(description="(Front Tire Size Description) As in \"17R245\""),
  rear_tire INT64 OPTIONS(description="(Rear Tire) More specific tire description (ex. Michelin Eagle P245/40ZR)"),
  rear_tire_pressure INT64 OPTIONS(description="(Rear Tire Pressure) Vehicle Mfr. recommendation for tire pressure, in pounds/sq. in."),
  rear_tire_size_code STRING OPTIONS(description="The size of the rear tires. example \"17R245\""),
  rear_tire_size STRING OPTIONS(description="(Rear Tire Size Description) As in \"17R245\""),
  tonnage_rating STRING OPTIONS(description="(Tonnage Rating) description"),
  shipping_weight INT64 OPTIONS(description="Contains the base weight of the vehicle, rounded to the nearest one hundred pounds, as defined in the OEM's specifications. The base weight of a vehicle is the empty weight of the base model of the vehicle (i.e., the stripped down version of the vehicle)"),
  base_price STRING OPTIONS(description="Contains the base price of the vehicle as designated by the OEM's specifications. BASE PRICE includes only the price for the base model of the vehicle, excluding any optional equipment that may have been added as a result of the vehicle's TRIM LEVEL."),
  drive_type_1 STRING OPTIONS(description="(Drive Type) This element describes type of driving configuration for cars and trucks such as FWD, AWD, RWD."),
  drive_type_2 STRING OPTIONS(description="(Drive Type) description"),
  country_sold_code STRING OPTIONS(description="(Country Sold / Specific Market) Country where the vehicle is planned to be sold (may have different emissions standards)."),
  country_sold STRING OPTIONS(description="(Country Sold / Specific Market) description"),
  brakes_abs_code STRING OPTIONS(description="(Brakes- ABS Code) A code that describes whether a vehicle has or does not have anti-lock brakes, and what kind of brakes they are. (Not coded for heavy truck). This is based on the series code that is assigned the vehicle from VINA."),
  brakes_abs_description STRING OPTIONS(description="(Brakes- ABS Code) description"),
  security_type_code STRING OPTIONS(description="(Security Type) Describes the security system (if any) installed on this model."),
  security_type STRING OPTIONS(description="(Security Type) description"),
  daytime_running_lights_1 STRING OPTIONS(description="(Daytime Running Lights)A Polk assigned code that identifies whether or not the vehicle has daytime running lights."),
  daytime_running_lights_2 STRING OPTIONS(description="(Daytime Running Lights) description"),
  restraint_type_code STRING OPTIONS(description="(Restraint Type) A Polk assigned code that identifies the type of restraints that a vehicle has based on VIN."),
  restraint_type STRING OPTIONS(description="(Restraint Type) description"),
  cab_configuration_code STRING OPTIONS(description="(Cab Configuration) Cab Type describes the physical configuration of a truck's cabin."),
  cab_configuration STRING OPTIONS(description="(Cab Configuration) medium description"),
  axle_type_front_axle_code STRING OPTIONS(description="(Axle- Type, Front Axle) The location of the front axle of a truck tractor. Set forward increases stability on the highway, Setback increases maneuverability in tight spaces."),
  axle_type_front_axle STRING OPTIONS(description="(Axle- Type, Front Axle) short description"),
  axle_type_rear_axle_code STRING OPTIONS(description="(Axle- Type, Rear Axle) Represents rear axle configuration on a truck tractor. Tandem axles increase load bearing capability."),
  axle_type_rear_axle STRING OPTIONS(description="(Axle- Type, Rear Axle) short description"),
  brake_type_code STRING OPTIONS(description="(Brake Type) The type of brakes on the Vehicle (currently commercial truck only). Truck VIN determines this currently"),
  brake_type STRING OPTIONS(description="(Brake Type) description"),
  engine_manufacture_code STRING OPTIONS(description="(Mfr.) A Polk assigned code given to the original equipment manufacture of the within a vehicle"),
  engine_manufacture STRING OPTIONS(description="(Mfr.) description"),
  engine_model STRING OPTIONS(description="(Model) description"),
  duty_type_code STRING OPTIONS(description="(Duty Type) A Polk assigned code that represents the duty type of a truck engine, based on manufacturer information."),
  duty_type STRING OPTIONS(description="(Duty Type) medium description"),
  bed_length_code STRING OPTIONS(description="(Bed Length) Code representing the manufacturer's description of the relative size of the cargo area of a pickup truck or van. A \"long\" Ford Ranger bed (compact pickup) may well be shorter than a \"short\" bed on an F350 (large industrial pickup)."),
  bed_length STRING OPTIONS(description="(Bed Length) description"),
  standard_segmentation_code STRING OPTIONS(description="The Polk standard segmentation code"),
  standard_segmentation STRING OPTIONS(description="Description of SEGMENTATION_CODE that represents the Polk Standard Segmentation applied."),
  plant_code STRING OPTIONS(description="(Plant Code) Plant code where vehicle was manufactured."),
  plant_country STRING OPTIONS(description="(Country) This is the country where the plant is located. Example values are USA, Canada and Japan."),
  plant_city STRING OPTIONS(description="(City) This is the city where the plant is located."),
  plant_country_code STRING OPTIONS(description="A code representing the country the plant is in."),
  plant_state_code STRING OPTIONS(description="A code representing the state or province the plant is in."),
  plant_state STRING OPTIONS(description="(State or Province) This is the state or province (Canada) location of the plant."),
  origin_code STRING OPTIONS(description="(Origin) A code that indicates the origin of a vehicle."),
  origin STRING OPTIONS(description="(Origin) description"),
  displacement_liters FLOAT64 OPTIONS(description="(Displacement Liters) displacement in rounded Liters, where 1,000 cubic centimeters = 1 liter. Even domestic makes will advertise displacement in terms of liters (e.g. 5.0 liter mustang, which equates to a 302 CID or 4967 cc displacement)."),
  block_type STRING OPTIONS(description="(Block Type) Description"),
  head_configuration_1 STRING OPTIONS(description="(Head Configuration) Describes the cylinder head's camshaft/valve configuration."),
  head_configuration_2 STRING OPTIONS(description="(Head Configuration) description"),
  valves_per_cylinder INT64 OPTIONS(description="(Valves Per Cylinder) Number of intake/exhaust valves per cylinder."),
  valves_total INT64 OPTIONS(description="(Valves Total) Total number of intake/exhaust valves."),
  engine_code STRING OPTIONS(description="(Code) Code derived from the VIN (not the secondary VIN for a motorcycle). Usually a single character, some manufactures give full positions 4-8 and engine information from that; they do not break it down any further."),
  is_incomplete STRING OPTIONS(description="Indicator that signifies whether the vehicle is consider \"incomplete\" (Y/N)"),
  battery_type_code STRING OPTIONS(description="A value that identifies the kind of battery in the vehicle. For example: PbA- Lead Acid, NMH- Nickel Metal Hydride."),
  battery_type STRING OPTIONS(description="The description of the Polk assigned code for the Battery Type Code. For example: PbA- Lead Acid, NMH- Nickel Metal Hydride."),
  total_battery_power STRING OPTIONS(description="The measure of total battery power expressed in kilowatts. For example: 71KW, 85KW, 75KW, 67KW."),
  battery_voltage STRING OPTIONS(description="The voltage rating of the battery as provided by the manufacturer."),
  supercharge_flag STRING OPTIONS(description="Indicates if the engine has a supercharger or not."),
  supercharge_flag_description STRING OPTIONS(description="Indicates if the engine has a supercharger or not. Yes, No or Unknown."),
  turbocharger_flag STRING OPTIONS(description="Indicates if the engine has a turbocharger"),
  turbocharger_flag_description STRING OPTIONS(description="Indicates if the engine has a turbocharger. Yes, No or Unknown."),
  variable_valve_timing_flag STRING OPTIONS(description="Used to determine if a car has Variable Valve Timing"),
  motorcycles_body_style_code STRING OPTIONS(description="A further breakdown of body style for motorcycles to indicate if is it On-Road or Off-Road."),
  motorcycles_body_style STRING OPTIONS(description="A further breakdown of body style for motorcycles to indicate if is it On-Road or Off-Road.")
)
OPTIONS(
  description="This data file contains vehicle descriptors for all vehicles,\nmainly passenger vehicles, trucks and motorcycles, based on the vehicle’s VIN which is\ndecoded using the VINtelligence program. There is one record per vehicle."
);

INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.vindecode_2015` (state_number, state_name, consecutive_number, vehicle_number, vehicle_make, marketing_year, vehicle_type_code, vehicle_type, make_name, model_code, vehicle_trim, vehicle_trim_1, vehicle_trim_2, vehicle_trim_3, vehicle_trim_4, body_style_code, body_style, num_of_doors, number_of_wheels, num_of_wheels_by_power_train, vehicle_manufacturer_code, vehicle_manufacturer_name, displacement_cid, displacement_cc, cylinder_count_code, cycle_count, fuel_code, fuel, type_of_fuel_code, type_of_fuel, carburetion_types_code, carburetion_types, num_of_barrels, gross_vehicle_weights_range_code, gross_vehicle_weights_range, distance_between_axles_for_base_model, distance_between_axles_for_particular_series, front_tire, front_tire_pressure, front_tire_size_code, front_tire_size, rear_tire, rear_tire_pressure, rear_tire_size_code, rear_tire_size, tonnage_rating, shipping_weight, base_price, drive_type_1, drive_type_2, country_sold_code, country_sold, brakes_abs_code, brakes_abs_description, security_type_code, security_type, daytime_running_lights_1, daytime_running_lights_2, restraint_type_code, restraint_type, cab_configuration_code, cab_configuration, axle_type_front_axle_code, axle_type_front_axle, axle_type_rear_axle_code, axle_type_rear_axle, brake_type_code, brake_type, engine_manufacture_code, engine_manufacture, engine_model, duty_type_code, duty_type, bed_length_code, bed_length, standard_segmentation_code, standard_segmentation, plant_code, plant_country, plant_city, plant_country_code, plant_state_code, plant_state, origin_code, origin, displacement_liters, block_type, head_configuration_1, head_configuration_2, valves_per_cylinder, valves_total, engine_code, is_incomplete, battery_type_code, battery_type, total_battery_power, battery_voltage, supercharge_flag, supercharge_flag_description, turbocharger_flag, turbocharger_flag_description, variable_valve_timing_flag, motorcycles_body_style_code, motorcycles_body_style) VALUES (1, 'Alabama', 10008, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (1, 'Alabama', 10035, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (1, 'Alabama', 10054, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (1, 'Alabama', 10055, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (1, 'Alabama', 10099, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);