-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.new_york.tlc_yellow_trips_2015`
(
  vendor_id STRING NOT NULL OPTIONS(description="A code indicating the TPEP 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."),
  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."),
  pickup_longitude FLOAT64 OPTIONS(description="Longitude where the meter was engaged."),
  pickup_latitude FLOAT64 OPTIONS(description="Latitude where the meter was engaged."),
  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"),
  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"),
  dropoff_longitude FLOAT64 OPTIONS(description="Longitude where the meter was disengaged"),
  dropoff_latitude FLOAT64 OPTIONS(description="Latitude where the meter was disengaged."),
  payment_type STRING 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"),
  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."),
  imp_surcharge FLOAT64 OPTIONS(description="$0.30 improvement surcharge assessed trips at the flag drop. The improvement surcharge began being levied in 2015."),
  total_amount FLOAT64 OPTIONS(description="The total amount charged to passengers. Does not include cash tips")
);

INSERT INTO `bigquery-public-data.new_york.tlc_yellow_trips_2015` (vendor_id, pickup_datetime, dropoff_datetime, passenger_count, trip_distance, pickup_longitude, pickup_latitude, rate_code, store_and_fwd_flag, dropoff_longitude, dropoff_latitude, payment_type, fare_amount, extra, mta_tax, tip_amount, tolls_amount, imp_surcharge, total_amount) VALUES ('2', '2015-08-18 05:56:49+00:00', '2015-08-18 05:57:01+00:00', 1, 0.0, -73.90199279785156, 40.76367950439453, 1, 'N', -73.90203857421875, 40.76372146606445, '2', 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), ('2', '2015-12-30 15:47:09+00:00', '2015-12-30 15:47:42+00:00', 1, 0.0, -73.9365463256836, 40.76464080810547, 1, 'N', -73.9365463256836, 40.76464080810547, '1', 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), ('2', '2015-07-14 07:17:52+00:00', '2015-07-14 07:18:58+00:00', 1, 0.0, -73.90223693847656, 40.76414108276367, 1, 'N', -73.90225219726562, 40.76411437988281, '2', 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), ('2', '2015-11-05 06:08:09+00:00', '2015-11-05 06:09:23+00:00', 1, 0.0, -73.90189361572266, 40.763877868652344, 1, 'N', -73.90190124511719, 40.763877868652344, '2', 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), ('2', '2015-10-04 10:32:59+00:00', '2015-10-04 10:33:13+00:00', 1, 0.0, -73.93665313720703, 40.76456069946289, 1, 'N', -73.93687438964844, 40.764652252197266, '1', 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);