-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.san_francisco.311_service_requests`
(
  unique_key INT64 NOT NULL OPTIONS(description="Unique case id"),
  created_date TIMESTAMP OPTIONS(description="The date and time when the service request was made"),
  closed_date TIMESTAMP OPTIONS(description="The date and time when the service request was closed"),
  resolution_action_updated_date TIMESTAMP OPTIONS(description="The date and time when the service request was last modified. For requests with status=closed, this will be the date the request was closed"),
  status STRING OPTIONS(description="The current status of the service request."),
  status_notes STRING OPTIONS(description="Explanation of why status was changed to current state or more details on current status than conveyed with status alone"),
  agency_name STRING OPTIONS(description="The agency responsible for fulfilling or otherwise addressing the service request."),
  category STRING OPTIONS(description="The Human readable name of the specific service request type (service_name)"),
  complaint_type STRING OPTIONS(description="More specific description of the problem related to the Category"),
  descriptor STRING OPTIONS(description="More specific description of the problem related to the Request Type"),
  incident_address STRING OPTIONS(description="Human readable address or description of location"),
  supervisor_district INT64 OPTIONS(description=""),
  neighborhood STRING OPTIONS(description=""),
  location STRING OPTIONS(description="Latitude and longitude using the (WGS84) projection."),
  source STRING OPTIONS(description="How the service request was made"),
  media_url STRING OPTIONS(description="Website URL"),
  latitude FLOAT64 OPTIONS(description="Latitude using the (WGS84) projection."),
  longitude FLOAT64 OPTIONS(description="Longitude using the (WGS84) projection."),
  police_district STRING OPTIONS(description="")
);

INSERT INTO `bigquery-public-data.san_francisco.311_service_requests` (unique_key, created_date, closed_date, resolution_action_updated_date, status, status_notes, agency_name, category, complaint_type, descriptor, incident_address, supervisor_district, neighborhood, location, source, media_url, latitude, longitude, police_district) VALUES (4875703, '2015-07-02 13:37:09+00:00', '2015-07-14 15:01:16+00:00', '2015-07-14 15:01:16+00:00', 'Closed', 'resolved: Maximo Service Request has been resolved', 'PUC Sewer Ops', 'Sewer Issues', 'Odor', 'Odor From_catch_basin', 'Not associated with a specific address', NULL, '', '', 'Web', '', 0.0, 0.0, ''), (3645142, '2014-05-15 11:25:58+00:00', '2014-05-19 06:26:42+00:00', '2014-05-19 06:26:42+00:00', 'Closed', 'cancelled: Maximo Service Request has been cancelled', 'PUC Sewer Ops', 'Sewer Issues', 'Odor', 'Odor From_manhole_cover', 'Not associated with a specific address', NULL, '', '', 'Web', '', 0.0, 0.0, ''), (5188903, '2015-10-14 15:33:01+00:00', 'NaT', '2015-10-14 18:12:27+00:00', 'Open', 'open', 'PUC - Sewer - G', 'Sewer Issues', 'Odor', 'Odor From_other_location', 'Not associated with a specific address', NULL, '', '', 'Web', '', 0.0, 0.0, ''), (2222674, '2013-04-08 23:53:48+00:00', '2013-04-09 06:59:22+00:00', '2013-04-09 06:59:22+00:00', 'Closed', 'Eastside Recycled Water Project', '311 Supervisor Queue', 'Sewer Issues', 'Odor', 'Odor From_other_location', 'Not associated with a specific address', NULL, '', '', 'Web', '', 0.0, 0.0, ''), (4218038, '2014-11-17 15:37:10+00:00', '2014-11-18 16:52:46+00:00', '2014-11-18 16:52:46+00:00', 'Closed', 'resolved: Maximo Service Request has been resolved.', 'PUC Sewer Ops', 'Sewer Issues', 'Odor', 'Odor From_side_sewer_vent', 'Not associated with a specific address', NULL, '', '', 'Web', '', 0.0, 0.0, '');