NYC Taxi — Surcharge Revenue
NYC Taxi benchmark · all NYC Taxi queries
Revenue from surcharges and extras
Representative SQL
Rendered in the benchmark’s native SQL with default parameters (no dialect translation available).
SELECT DATE_TRUNC('MONTH', pickup_datetime) AS month, SUM(extra) AS extra_revenue, SUM(mta_tax) AS mta_tax_revenue, SUM(improvement_surcharge) AS improvement_revenue, SUM(congestion_surcharge) AS congestion_revenue, SUM(tolls_amount) AS tolls_revenueFROM tripsWHERE pickup_datetime >= '2019-01-01' AND pickup_datetime < '2020-01-01'GROUP BY DATE_TRUNC('MONTH', pickup_datetime)ORDER BY monthRepresentative 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['surcharge-revenue'])Source
Query text: benchbox/core/nyctaxi/queries.py