-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.new_york_311.311_service_requests`
(
  unique_key INT64 OPTIONS(description=""),
  created_date TIMESTAMP OPTIONS(description=""),
  closed_date TIMESTAMP OPTIONS(description=""),
  agency STRING OPTIONS(description=""),
  agency_name STRING OPTIONS(description=""),
  complaint_type STRING OPTIONS(description=""),
  descriptor STRING OPTIONS(description=""),
  location_type STRING OPTIONS(description=""),
  incident_zip STRING OPTIONS(description=""),
  incident_address STRING OPTIONS(description=""),
  street_name STRING OPTIONS(description=""),
  cross_street_1 STRING OPTIONS(description=""),
  cross_street_2 STRING OPTIONS(description=""),
  intersection_street_1 STRING OPTIONS(description=""),
  intersection_street_2 STRING OPTIONS(description=""),
  address_type STRING OPTIONS(description=""),
  city STRING OPTIONS(description=""),
  landmark STRING OPTIONS(description=""),
  facility_type STRING OPTIONS(description=""),
  status STRING OPTIONS(description=""),
  due_date TIMESTAMP OPTIONS(description=""),
  resolution_description STRING OPTIONS(description=""),
  resolution_action_updated_date TIMESTAMP OPTIONS(description=""),
  community_board STRING OPTIONS(description=""),
  borough STRING OPTIONS(description=""),
  x_coordinate INT64 OPTIONS(description=""),
  y_coordinate INT64 OPTIONS(description=""),
  park_facility_name STRING OPTIONS(description=""),
  park_borough STRING OPTIONS(description=""),
  bbl INT64 OPTIONS(description=""),
  open_data_channel_type STRING OPTIONS(description=""),
  vehicle_type STRING OPTIONS(description=""),
  taxi_company_borough STRING OPTIONS(description=""),
  taxi_pickup_location STRING OPTIONS(description=""),
  bridge_highway_name STRING OPTIONS(description=""),
  bridge_highway_direction STRING OPTIONS(description=""),
  road_ramp STRING OPTIONS(description=""),
  bridge_highway_segment STRING OPTIONS(description=""),
  latitude FLOAT64 OPTIONS(description=""),
  longitude FLOAT64 OPTIONS(description=""),
  location STRING OPTIONS(description="")
);

INSERT INTO `bigquery-public-data.new_york_311.311_service_requests` (unique_key, created_date, closed_date, agency, agency_name, complaint_type, descriptor, location_type, incident_zip, incident_address, street_name, cross_street_1, cross_street_2, intersection_street_1, intersection_street_2, address_type, city, landmark, facility_type, status, due_date, resolution_description, resolution_action_updated_date, community_board, borough, x_coordinate, y_coordinate, park_facility_name, park_borough, bbl, open_data_channel_type, vehicle_type, taxi_company_borough, taxi_pickup_location, bridge_highway_name, bridge_highway_direction, road_ramp, bridge_highway_segment, latitude, longitude, location) VALUES (22558827, '2012-01-20 15:06:00+00:00', 'NaT', 'DEP', 'Department of Environmental Protection', 'Water System', 'Hydrant Running (WC3)', NULL, '10451', NULL, NULL, NULL, NULL, 'PARK AVENUE', 'EAST 149 STREET', 'INTERSECTION', 'BRONX', NULL, 'N/A', 'Started', 'NaT', 'The Department of Environmental Protection has inspected your complaint and determined that further investigation is required. More information will be available once the condition is resolved. Please visit nyc.gov/311 or call 311 at a later time to check the status of your complaint.', '2012-01-30 08:45:00+00:00', '01 BRONX', 'BRONX', 1004958, 237310, 'Unspecified', 'BRONX', NULL, 'UNKNOWN', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 40.81801253627153, -73.9251851473035, '(40.81801253627153, -73.9251851473035)'), (22557880, '2012-01-20 15:26:00+00:00', '2012-01-19 01:30:00+00:00', 'DOT', 'Department of Transportation', 'Street Light Condition', 'Street Light Out', NULL, '10455', NULL, NULL, 'ST ANNS AVE', 'WESTCHESTER AVE', 'ST ANNS AVENUE', 'WESTCHESTER AVENUE', 'INTERSECTION', 'BRONX', NULL, 'N/A', 'Pending', 'NaT', 'Service Request status for this request is available on the Department of Transportationâ€™s website. Please click the â€œLearn Moreâ€  link below.', '2012-01-19 01:30:00+00:00', '01 BRONX', 'BRONX', 1008624, 236597, 'Unspecified', 'BRONX', NULL, 'UNKNOWN', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 40.816046197774725, -73.91194304491894, '(40.816046197774725, -73.91194304491894)'), (35079048, '2016-12-21 17:56:27+00:00', '2016-12-27 07:48:19+00:00', 'DOT', 'Department of Transportation', 'Street Sign - Missing', 'Bus Stop', 'Street', '10462', NULL, NULL, NULL, NULL, NULL, NULL, 'LATLONG', 'BRONX', NULL, 'N/A', 'Closed', '2017-06-20 10:52:28+00:00', 'The Department of Transportation has completed the request or corrected the condition.', '2016-12-27 07:48:20+00:00', '01 BRONX', 'BRONX', 1020764, 247096, 'Unspecified', 'BRONX', NULL, 'MOBILE', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 40.84482107246197, -73.86802727652292, '(40.84482107246197, -73.86802727652292)'), (35084812, '2016-12-23 01:16:23+00:00', '2016-12-28 15:47:32+00:00', 'DOT', 'Department of Transportation', 'Street Sign - Missing', 'Stop', 'Street', '10465', NULL, NULL, NULL, NULL, NULL, NULL, 'LATLONG', 'BRONX', NULL, 'N/A', 'Closed', '2016-12-30 14:15:34+00:00', 'The Department of Transportation has completed the request or corrected the condition.', '2016-12-28 15:47:32+00:00', '01 BRONX', 'BRONX', 1034399, 244341, 'Unspecified', 'BRONX', NULL, 'MOBILE', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 40.837192507355496, -73.81876695405703, '(40.837192507355496, -73.81876695405703)'), (22565858, '2012-01-21 06:06:00+00:00', '2012-01-24 12:00:00+00:00', 'DSNY', 'A - Illegal Posting Manhattan and Bronx', 'Dirty Conditions', 'E15 Illegal Postering', 'Sidewalk', '10451', NULL, NULL, NULL, NULL, 'GRAND CONCOURSE', 'EAST 149 STREET', 'INTERSECTION', 'BRONX', NULL, 'N/A', 'Closed', 'NaT', 'The Department of Sanitation has removed illegal postings from the location. The Department will issue a Notice of Violation to the responsible party once it is identified.', '2012-01-24 12:00:00+00:00', '01 BRONX', 'BRONX', 1004368, 237509, 'Unspecified', 'BRONX', NULL, 'PHONE', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 40.81856009851, -73.92731612997096, '(40.81856009851, -73.92731612997096)');