-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.austin_311.311_service_requests`
(
  unique_key STRING OPTIONS(description="The service request tracking number."),
  complaint_description STRING OPTIONS(description="Service request type"),
  source STRING OPTIONS(description="Contact method Service request was received from. Mass entry requests are submitted by dept. in groups after work is completed."),
  status STRING OPTIONS(description="Service request status. Duplicate statuses indicate that issue had previously been reported recently."),
  status_change_date TIMESTAMP OPTIONS(description="Date of last Service request status change. Status changes occur when service request moves from one status to another. I.E. new to open, open to closed."),
  created_date TIMESTAMP OPTIONS(description="Date Service request was created."),
  last_update_date TIMESTAMP OPTIONS(description="Date Service request was updated. Last date Service request received updates. Updates may include creation, status changes, or changes to data in Service request."),
  close_date TIMESTAMP OPTIONS(description="Date Service request was closed."),
  incident_address STRING OPTIONS(description="Service location of Service request."),
  street_number STRING OPTIONS(description="Parsed location information. Street number."),
  street_name STRING OPTIONS(description="Parsed location information. Street name."),
  city STRING OPTIONS(description="Parsed location information. City."),
  incident_zip INT64 OPTIONS(description="Parsed location information. Zip code."),
  county STRING OPTIONS(description="Parsed location information. County."),
  state_plane_x_coordinate STRING OPTIONS(description="State plane X coordinate."),
  state_plane_y_coordinate FLOAT64 OPTIONS(description="State plane Y coordinate."),
  latitude FLOAT64 OPTIONS(description="Service request location latitude coordinate."),
  longitude FLOAT64 OPTIONS(description="Service request location longitude coordinate."),
  location STRING OPTIONS(description="Service request location latitude and longitude coordinates."),
  council_district_code INT64 OPTIONS(description="Council district corresponding to Service request location. Locations outside of the City of Austin jurisdiction will not have a council district."),
  map_page STRING OPTIONS(description="Service request location corresponding map page."),
  map_tile STRING OPTIONS(description="Service request location corresponding map tile.")
);

INSERT INTO `bigquery-public-data.austin_311.311_service_requests` (unique_key, complaint_description, source, status, status_change_date, created_date, last_update_date, close_date, incident_address, street_number, street_name, city, incident_zip, county, state_plane_x_coordinate, state_plane_y_coordinate, latitude, longitude, location, council_district_code, map_page, map_tile) VALUES ('17-00267682', 'Parking Machine Issue', 'Phone', 'Closed', '2017-09-11 09:34:40+00:00', '2017-09-09 14:15:32+00:00', '2017-09-11 09:34:40+00:00', '2017-09-11 09:34:40+00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, nan, nan, NULL, 0, NULL, NULL), ('17-00376179', 'Parking Machine Issue', 'Phone', 'Closed', '2017-12-21 08:45:03+00:00', '2017-12-19 18:35:39+00:00', '2017-12-21 08:45:03+00:00', '2017-12-21 08:45:03+00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, nan, nan, NULL, 0, NULL, NULL), ('19-00217332', 'Parking Machine Issue', 'Phone', 'Closed', '2019-06-13 06:29:24+00:00', '2019-06-11 13:16:05+00:00', '2019-06-13 06:29:24+00:00', '2019-06-13 06:29:24+00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, nan, nan, NULL, 0, NULL, NULL), ('24-00163260', 'AE Street Light Issue - No Address', 'Web', 'Closed', '2024-05-09 12:06:34+00:00', '2024-05-08 08:47:58+00:00', '2024-05-09 12:06:34+00:00', '2024-05-09 12:06:34+00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, nan, nan, NULL, 0, NULL, NULL), ('24-00050616', 'APH - Community Connections Coronavirus', 'Phone', 'Closed', '2024-02-13 10:19:07+00:00', '2024-02-12 16:46:22+00:00', '2024-02-13 10:19:07+00:00', '2024-02-13 10:19:07+00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, nan, nan, NULL, 0, NULL, NULL);