NYC Taxi — Rate Code Summary
NYC Taxi benchmark · all NYC Taxi queries
Trip statistics by rate code
Representative SQL
Rendered in the benchmark’s native SQL with default parameters (no dialect translation available).
SELECT rate_code_id, COUNT(*) AS trip_count, AVG(trip_distance) AS avg_distance, AVG(total_amount) AS avg_fare, SUM(total_amount) AS total_revenueFROM tripsWHERE pickup_datetime >= '2019-01-10' AND pickup_datetime < '2019-04-10'GROUP BY rate_code_idORDER BY trip_count DESCRepresentative 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['rate-code-summary'])Source
Query text: benchbox/core/nyctaxi/queries.py