NYC Taxi — Top Dropoff Zones
NYC Taxi benchmark · all NYC Taxi queries
Most popular dropoff locations
Representative SQL
Rendered in the benchmark’s native SQL with default parameters (no dialect translation available).
SELECT t.dropoff_location_id, z.zone, z.borough, COUNT(*) AS trip_countFROM trips AS tLEFT JOIN taxi_zones AS z ON t.dropoff_location_id = z.location_idWHERE t.pickup_datetime >= '2019-02-28' AND t.pickup_datetime < '2019-03-30'GROUP BY t.dropoff_location_id, z.zone, z.boroughORDER BY trip_count DESCLIMIT 20Representative DataFrame
No DataFrame implementation is registered for this query.
Get the exact query for your run
The blocks above are representative. To get the precise statement a specific platform runs at a specific scale, substitute your own values:
from benchbox import NYCTaxi
bench = NYCTaxi(scale_factor=1.0) # your scale factorqueries = bench.get_queries(dialect="datafusion") # your platform's dialect; drop dialect= for native SQLprint(queries['top-dropoff-zones'])Source
Query text: benchbox/core/nyctaxi/queries.py