-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.vsoe_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). For more info on the codes, please look at <C1/V1/D1/PC1/P1/NM1 State Number> section in the pdf: https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/812315"),
  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. xxxxxx Two Characters for State Code followed by Four Characters for Case Number"),
  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. 000-999 Assigned Number of Motor Vehicle"),
  vehicle_event_number INT64 OPTIONS(description="This data element is the consecutive number assigned to each harmful and nonharmful event for this vehicle, in chronological order. 001-999 Vehicle Event Number"),
  sequence_of_events INT64 OPTIONS(description="This data element describes this event. A motor vehicle traffic crash is a series of events resulting from an unstabilized situation. This series of harmful and non-harmful events is recorded in chronological order based on the PAR narrative and diagram. For more info on the codes, please look at <V31 Sequence of Events> section in the pdf: https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/812315"),
  sequence_of_events_name STRING OPTIONS(description="This data element describes this event. A motor vehicle traffic crash is a series of events resulting from an unstabilized situation. This series of harmful and non-harmful events is recorded in chronological order based on the PAR narrative and diagram. For more info on the codes, please look at <V31 Sequence of Events> section in the pdf: https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/812315"),
  area_of_Impact_associated_with_the_event INT64 OPTIONS(description="This data element identifies the impact point, if any, on this in-transport motor vehicle that produced property damage or personal injury in this event. For more info on the codes, please look at <C18 Area of Impact Associated with the Event> section in the pdf: https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/812315"),
  area_of_Impact_associated_with_the_event_name STRING OPTIONS(description="This data element identifies the impact point, if any, on this in-transport motor vehicle that produced property damage or personal injury in this event. For more info on the codes, please look at <C18 Area of Impact Associated with the Event> section in the pdf: https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/812315")
)
OPTIONS(
  description="This data file contains the sequence of events for each intransport\nmotor vehicle involved in the crash. This data file has a subset of the data\nelements contained in the Vevent data file (It is a simplified Vevent data file). There is\none record for each event for each in-transport motor vehicle."
);

INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.vsoe_2015` (state_number, state_name, consecutive_number, vehicle_number, vehicle_event_number, sequence_of_events, sequence_of_events_name, area_of_Impact_associated_with_the_event, area_of_Impact_associated_with_the_event_name) VALUES (6, 'California', 60089, 2, 5, 8, 'Pedestrian', 13, 'Top'), (6, 'California', 63077, 1, 1, 8, 'Pedestrian', 13, 'Top'), (36, 'New York', 360374, 1, 5, 8, 'Pedestrian', 13, 'Top'), (39, 'Ohio', 390200, 1, 1, 8, 'Pedestrian', 13, 'Top'), (55, 'Wisconsin', 550479, 1, 3, 8, 'Pedestrian', 13, 'Top');