-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.san_francisco_bikeshare.bikeshare_trips`
(
  trip_id STRING NOT NULL OPTIONS(description="Numeric ID of bike trip"),
  duration_sec INT64 OPTIONS(description="Time of trip in seconds"),
  start_date TIMESTAMP OPTIONS(description="Start date of trip with date and time, in PST"),
  start_station_name STRING OPTIONS(description="Station name of start station"),
  start_station_id INT64 OPTIONS(description="Numeric reference for start station"),
  end_date TIMESTAMP OPTIONS(description="End date of trip with date and time, in PST"),
  end_station_name STRING OPTIONS(description="Station name for end station"),
  end_station_id INT64 OPTIONS(description="Numeric reference for end station"),
  bike_number INT64 OPTIONS(description="ID of bike used"),
  zip_code STRING OPTIONS(description="Home zip code of subscriber (customers can choose to manually enter zip at kiosk however data is unreliable)"),
  subscriber_type STRING OPTIONS(description="Subscriber = annual or 30-day member; Customer = 24-hour or 3-day member"),
  c_subscription_type STRING OPTIONS(description=""),
  start_station_latitude FLOAT64 OPTIONS(description=""),
  start_station_longitude FLOAT64 OPTIONS(description=""),
  end_station_latitude FLOAT64 OPTIONS(description=""),
  end_station_longitude FLOAT64 OPTIONS(description=""),
  member_birth_year INT64 OPTIONS(description=""),
  member_gender STRING OPTIONS(description=""),
  bike_share_for_all_trip STRING OPTIONS(description=""),
  start_station_geom GEOGRAPHY OPTIONS(description=""),
  end_station_geom GEOGRAPHY OPTIONS(description="")
);

INSERT INTO `bigquery-public-data.san_francisco_bikeshare.bikeshare_trips` (trip_id, duration_sec, start_date, start_station_name, start_station_id, end_date, end_station_name, end_station_id, bike_number, zip_code, subscriber_type, c_subscription_type, start_station_latitude, start_station_longitude, end_station_latitude, end_station_longitude, member_birth_year, member_gender, bike_share_for_all_trip, start_station_geom, end_station_geom) VALUES ('201712271027562591', 623, '2017-12-27 10:27:56+00:00', '10th Ave at E 15th St', 222, '2017-12-27 10:38:20+00:00', '10th Ave at E 15th St', 222, 2591, NULL, 'Subscriber', NULL, 37.7927143, -122.2487796, 37.7927143, -122.2487796, 1984, 'Male', NULL, 'POINT(-122.2487796 37.7927143)', 'POINT(-122.2487796 37.7927143)'), ('20180404084625300', 1039, '2018-04-04 08:46:25+00:00', '10th Ave at E 15th St', 222, '2018-04-04 09:03:45+00:00', '10th Ave at E 15th St', 222, 300, NULL, 'Subscriber', NULL, 37.7927143, -122.2487796, 37.7927143, -122.2487796, 1981, 'Male', 'Yes', 'POINT(-122.2487796 37.7927143)', 'POINT(-122.2487796 37.7927143)'), ('201712011430173183', 591, '2017-12-01 14:30:17+00:00', '10th St at Fallon St', 201, '2017-12-01 14:40:08+00:00', '10th Ave at E 15th St', 222, 3183, NULL, 'Subscriber', NULL, 37.7976728, -122.2629973, 37.7927143, -122.2487796, 1981, 'Male', NULL, 'POINT(-122.2629973 37.7976728)', 'POINT(-122.2487796 37.7927143)'), ('201804271636401508', 659, '2018-04-27 16:36:40+00:00', '10th St at Fallon St', 201, '2018-04-27 16:47:39+00:00', '10th Ave at E 15th St', 222, 1508, NULL, 'Subscriber', NULL, 37.7976728, -122.2629973, 37.7927143, -122.2487796, 1984, 'Male', 'Yes', 'POINT(-122.2629973 37.7976728)', 'POINT(-122.2487796 37.7927143)'), ('20170818144000571', 535, '2017-08-18 14:40:00+00:00', '10th St at Fallon St', 201, '2017-08-18 14:48:56+00:00', '10th Ave at E 15th St', 222, 571, NULL, 'Subscriber', NULL, 37.7976728, -122.2629973, 37.7927143, -122.2487796, 1981, 'Female', NULL, 'POINT(-122.2629973 37.7976728)', 'POINT(-122.2487796 37.7927143)');