-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.new_york.tlc_green_trips_2015`
(
  vendor_id STRING NOT NULL OPTIONS(description="A code indicating the LPEP provider that provided the record. 1= Creative Mobile Technologies, LLC; 2= VeriFone Inc."),
  pickup_datetime TIMESTAMP OPTIONS(description="The date and time when the meter was engaged."),
  dropoff_datetime TIMESTAMP OPTIONS(description="The date and time when the meter was disengaged."),
  store_and_fwd_flag STRING OPTIONS(description="This flag indicates whether the trip record was held in vehicle memory before sending to the vendor, aka “store and forward,” because the vehicle did not have a connection to the server. Y= store and forward trip N= not a store and forward trip"),
  rate_code INT64 OPTIONS(description="The final rate code in effect at the end of the trip. 1= Standard rate 2=JFK 3=Newark 4=Nassau or Westchester 5=Negotiated fare 6=Group ride"),
  pickup_longitude FLOAT64 OPTIONS(description="Longitude where the meter was engaged."),
  pickup_latitude FLOAT64 OPTIONS(description="Latitude where the meter was engaged."),
  dropoff_longitude FLOAT64 OPTIONS(description="Longitude where the meter was timed off"),
  dropoff_latitude FLOAT64 OPTIONS(description="Latitude where the meter was timed off."),
  passenger_count INT64 OPTIONS(description="The number of passengers in the vehicle. This is a driver-entered value"),
  trip_distance FLOAT64 OPTIONS(description="The elapsed trip distance in miles reported by the taximeter"),
  fare_amount FLOAT64 OPTIONS(description="The time-and-distance fare calculated by the meter"),
  extra FLOAT64 OPTIONS(description="Miscellaneous extras and surcharges. Currently, this only includes the $0.50 and $1 rush hour and overnight charges"),
  mta_tax FLOAT64 OPTIONS(description="$0.50 MTA tax that is automatically triggered based on the metered rate in use."),
  tip_amount FLOAT64 OPTIONS(description="Tip amount – This field is automatically populated for credit card tips. Cash tips are not included."),
  tolls_amount FLOAT64 OPTIONS(description="Total amount of all tolls paid in trip"),
  ehail_fee FLOAT64 OPTIONS(description=""),
  total_amount FLOAT64 OPTIONS(description="The total amount charged to passengers. Does not include cash tips"),
  payment_type INT64 OPTIONS(description="A numeric code signifying how the passenger paid for the trip. 1= Credit card 2= Cash 3= No charge 4= Dispute 5= Unknown 6= Voided trip"),
  distance_between_service FLOAT64 OPTIONS(description=""),
  time_between_service INT64 OPTIONS(description=""),
  trip_type INT64 OPTIONS(description="A code indicating whether the trip was a street-hail or a dispatch that is automatically assigned based on the metered rate in use but can be altered by the driver. 1= Street-hail 2= Dispatch"),
  imp_surcharge FLOAT64 OPTIONS(description="$0.30 improvement surcharge assessed on hailed trips at the flag drop. The improvement surcharge began being levied in 2015.")
);

INSERT INTO `bigquery-public-data.new_york.tlc_green_trips_2015` (vendor_id, pickup_datetime, dropoff_datetime, store_and_fwd_flag, rate_code, pickup_longitude, pickup_latitude, dropoff_longitude, dropoff_latitude, passenger_count, trip_distance, fare_amount, extra, mta_tax, tip_amount, tolls_amount, ehail_fee, total_amount, payment_type, distance_between_service, time_between_service, trip_type, imp_surcharge) VALUES ('1', '2015-04-25 02:35:53+00:00', '2015-04-25 02:40:48+00:00', 'N', 5, -73.90876007080078, 40.706687927246094, -73.92520904541016, 40.69826126098633, 1, 1.3, 0.0, 0.0, 0.0, 0.0, 0.0, nan, 0.0, 2, nan, NULL, 2, 0.0), ('1', '2015-05-15 04:07:32+00:00', '2015-05-15 04:40:53+00:00', 'N', 5, -73.8848648071289, 40.8134651184082, -73.90690612792969, 40.82597351074219, 1, 4.3, 0.0, 0.0, 0.0, 0.0, 0.0, nan, 0.0, 2, nan, NULL, 2, 0.0), ('1', '2015-10-23 10:44:28+00:00', '2015-10-23 10:50:52+00:00', 'N', 5, -73.92927551269531, 40.76120376586914, -73.91886901855469, 40.765689849853516, 1, 0.9, 0.0, 0.0, 0.0, 0.0, 0.0, nan, 0.0, 2, nan, NULL, 2, 0.0), ('1', '2015-07-30 23:59:28+00:00', '2015-07-30 23:59:54+00:00', 'N', 5, -73.87706756591797, 40.75157165527344, -73.87706756591797, 40.7515754699707, 1, 0.1, 0.0, 0.0, 0.0, 0.0, 0.0, nan, 0.0, 3, nan, NULL, 2, 0.0), ('1', '2015-11-26 01:29:27+00:00', '2015-11-26 01:34:41+00:00', 'N', 5, -73.89570617675781, 40.882347106933594, -73.9077377319336, 40.88149642944336, 1, 1.1, 0.0, 0.0, 0.0, 0.0, 0.0, nan, 0.0, 2, nan, NULL, 2, 0.0);