-- DBMS: sqlite
CREATE TABLE collisions (
    case_id REAL,
    jurisdiction REAL,
    officer_id TEXT,
    reporting_district TEXT,
    chp_shift TEXT,
    population TEXT,
    county_city_location INTEGER,
    county_location TEXT,
    special_condition REAL,
    beat_type TEXT,
    chp_beat_type TEXT,
    city_division_lapd TEXT,
    chp_beat_class TEXT,
    beat_number TEXT,
    primary_road TEXT,
    secondary_road TEXT,
    distance REAL,
    direction TEXT,
    intersection REAL,
    weather_1 TEXT,
    weather_2 TEXT,
    state_highway_indicator REAL,
    caltrans_county TEXT,
    caltrans_district REAL,
    state_route REAL,
    route_suffix TEXT,
    postmile_prefix TEXT,
    postmile REAL,
    location_type TEXT,
    ramp_intersection TEXT,
    side_of_highway TEXT,
    tow_away REAL,
    collision_severity TEXT,
    killed_victims REAL,
    injured_victims REAL,
    party_count REAL,
    primary_collision_factor TEXT,
    pcf_violation_code TEXT,
    pcf_violation_category TEXT,
    pcf_violation REAL,
    pcf_violation_subsection TEXT,
    hit_and_run TEXT,
    type_of_collision TEXT,
    motor_vehicle_involved_with TEXT,
    pedestrian_action TEXT,
    road_surface TEXT,
    road_condition_1 TEXT,
    road_condition_2 TEXT,
    lighting TEXT,
    control_device TEXT,
    chp_road_type TEXT,
    pedestrian_collision INTEGER,
    bicycle_collision INTEGER,
    motorcycle_collision INTEGER,
    truck_collision INTEGER,
    not_private_property REAL,
    alcohol_involved REAL,
    statewide_vehicle_type_at_fault TEXT,
    chp_vehicle_type_at_fault TEXT,
    severe_injury_count INTEGER,
    other_visible_injury_count INTEGER,
    complaint_of_pain_injury_count INTEGER,
    pedestrian_killed_count INTEGER,
    pedestrian_injured_count INTEGER,
    bicyclist_killed_count INTEGER,
    bicyclist_injured_count INTEGER,
    motorcyclist_killed_count INTEGER,
    motorcyclist_injured_count REAL,
    primary_ramp TEXT,
    secondary_ramp TEXT,
    latitude REAL,
    longitude REAL,
    collision_date TEXT,
    collision_time TEXT,
    process_date TEXT
);

INSERT INTO collisions (case_id, jurisdiction, officer_id, reporting_district, chp_shift, population, county_city_location, county_location, special_condition, beat_type, chp_beat_type, city_division_lapd, chp_beat_class, beat_number, primary_road, secondary_road, distance, direction, intersection, weather_1, weather_2, state_highway_indicator, caltrans_county, caltrans_district, state_route, route_suffix, postmile_prefix, postmile, location_type, ramp_intersection, side_of_highway, tow_away, collision_severity, killed_victims, injured_victims, party_count, primary_collision_factor, pcf_violation_code, pcf_violation_category, pcf_violation, pcf_violation_subsection, hit_and_run, type_of_collision, motor_vehicle_involved_with, pedestrian_action, road_surface, road_condition_1, road_condition_2, lighting, control_device, chp_road_type, pedestrian_collision, bicycle_collision, motorcycle_collision, truck_collision, not_private_property, alcohol_involved, statewide_vehicle_type_at_fault, chp_vehicle_type_at_fault, severe_injury_count, other_visible_injury_count, complaint_of_pain_injury_count, pedestrian_killed_count, pedestrian_injured_count, bicyclist_killed_count, bicyclist_injured_count, motorcyclist_killed_count, motorcyclist_injured_count, primary_ramp, secondary_ramp, latitude, longitude, collision_date, collision_time, process_date) VALUES (1527653.0, 5406.0, '13', 'D2', 'not chp', '25000 to 50000', 5406, 'tulare', 0.0, 'not chp', 'not chp', NULL, 'not chp', 'EAST', 'BLACKSTONE', 'LEVIN', 0.0, NULL, 1.0, 'clear', NULL, 0.0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1.0, 'pain', 0.0, 1.0, 5.0, 'vehicle code violation', NULL, 'automobile right of way', 21804.0, 'A', 'felony', 'broadside', 'other motor vehicle', 'no pedestrian involved', 'dry', 'normal', NULL, 'daylight', 'functioning', '0', 0, 0, 0, 0, 1.0, NULL, 'passenger car', NULL, 0, 0, 1, 0, 0, 0, 0, 0, 0.0, NULL, NULL, NULL, NULL, '2004-05-13', '15:36:00', '2005-06-15'), (3921978.0, 9285.0, '15030', NULL, '2200 thru 0559', 'unincorporated', 5100, 'sutter', 0.0, 'chp county roadarea', 'county road area', NULL, 'chp other', '007', 'BOGUE RD', 'GEORGE WASHINGTON BL', 1584.0, 'west', 0.0, 'clear', NULL, 0.0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1.0, 'severe injury', 0.0, 2.0, 2.0, 'vehicle code violation', NULL, 'pedestrian violation', 21956.0, NULL, 'not hit and run', 'pedestrian', 'pedestrian', 'in road', 'dry', 'normal', NULL, 'dark with no street lights', 'none', '0', 1, 0, 0, 0, 1.0, NULL, 'pedestrian', 'pedestrian', 1, 0, 1, 0, 1, 0, 0, 0, 0.0, NULL, NULL, NULL, NULL, '2008-09-11', '02:28:00', '2009-04-20'), (6260268.0, 3024.0, '141', 'P43', 'not chp', '50000 to 100000', 3024, 'orange', 0.0, 'not chp', 'not chp', NULL, 'not chp', 'EAST', 'MAGNOLIA ST', 'UNIVERSE AV', 0.0, NULL, 1.0, 'clear', NULL, 0.0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1.0, 'pain', 0.0, 1.0, 2.0, 'vehicle code violation', NULL, 'automobile right of way', 21801.0, 'A', 'not hit and run', 'broadside', 'other motor vehicle', 'no pedestrian involved', 'dry', 'normal', NULL, 'daylight', 'none', '0', 0, 0, 0, 0, 1.0, NULL, 'passenger car', 'passenger car, station', 0, 0, 1, 0, 0, 0, 0, 0, 0.0, NULL, NULL, NULL, NULL, '2013-09-24', '13:35:00', '2014-04-14'), (3377480.0, 5604.0, '5101', NULL, 'not chp', '100000 to 250000', 5604, 'ventura', 0.0, 'not chp', 'not chp', NULL, 'not chp', '031', 'FRESCA DR', 'JUEGO ST', 50.0, 'south', 0.0, 'clear', NULL, 0.0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.0, 'property damage only', 0.0, 0.0, 2.0, 'vehicle code violation', NULL, 'improper turning', 22107.0, NULL, 'misdemeanor', 'broadside', 'parked motor vehicle', 'no pedestrian involved', 'dry', 'normal', NULL, 'daylight', 'none', '0', 0, 0, 0, 0, 1.0, NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0.0, NULL, NULL, NULL, NULL, '2007-09-29', '09:00:00', '2008-02-18'), (8876370.0, 1941.0, '10805', NULL, 'not chp', '>250000', 1941, 'los angeles', 0.0, 'not chp', 'not chp', NULL, 'not chp', NULL, 'ORANGE AV', 'SOUTH ST', 0.0, NULL, 1.0, 'clear', NULL, 0.0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.0, 'pain', 0.0, 1.0, 2.0, 'unknown', NULL, 'unknown', nan, NULL, 'not hit and run', 'sideswipe', 'other motor vehicle', 'no pedestrian involved', 'dry', 'normal', NULL, 'daylight', 'none', '0', 0, 0, 1, 0, 1.0, NULL, NULL, NULL, 0, 0, 1, 0, 0, 0, 0, 0, 1.0, NULL, NULL, NULL, NULL, '2019-06-01', '09:06:00', '2019-06-18');