SQL + DATA ANALYTICS

NYC Transportation
Intelligence Lab

An AI-assisted, SQL-first exploration of official NYC TLC Yellow Taxi trip records. Operational questions and analytical direction are human-led; AI helped implement the SQL, Python pipeline, and dashboard. See the query and its result.

Checking for verified SQL-generated metrics. No illustrative figures are presented as real trip results.
Records audited
—
Missing pickup timestamps
—
Invalid trip distances
—
DOWNLOAD / EXCEL ANALYTICAL MODEL

Inspect the formulas, assumptions, and scenario model

Download the reproducible Excel workbook generated from the same verified SQL metrics as this dashboard. Includes hourly and weekday demand, named zones, borough comparisons, month-over-month trends, data quality, charts, and an editable capacity scenario. Scenario assumptions are illustrative—not observed fleet staffing or unmet demand.

Download Excel operations model (.xlsx) ↓ · Inspect workbook generator ↗

\n
SOURCE CODE / REPRODUCIBLE ANALYSIS

Seven real SQL queries, available for review

These are the actual version-controlled DuckDB SQL files used by the analysis pipeline. Open each query to inspect the source; the interactive explorer below also shows SQL alongside its verified output.

01 · Hourly demand

View SQL source ↗

02 · Zone ranking

View SQL source ↗

03 · Data quality audit

View SQL source ↗

04 · Weekday demand

View SQL source ↗

05 · Trip-duration CTEs

View SQL source ↗

06 · Geographic JOIN

View SQL source ↗

07 · Monthly trends / LAG()

View SQL source ↗

Explore the SQL

Select an operational question to reveal the actual query, analytical reasoning and corresponding output.

Open full query on GitHub ↗

SQL output

Run the pipeline to populate verified results.

NYC geographic demand

Official TLC taxi-zone lookup enriches pickup zone IDs with borough and neighborhood names. Use the Geographic demand tab to compare boroughs; the top named zones appear below.

Waiting for verified geographic metrics.

Analyst interpretation

Decision: Compare hourly and weekday pickup volumes to identify periods with greater observed trip activity. Use the pickup-zone ranking to prioritize locations for further service-coverage investigation.

Validation: The data-quality audit reports problematic records separately. Trip-duration metrics use a documented 1–180-minute filter rather than silently including impossible or extreme values.

Next investigation: Join the official taxi-zone lookup, compare multiple months, and quantify variability before recommending staffing levels or predicting demand.

Data lineage & limitations

Source: NYC Taxi & Limousine Commission. Monthly Yellow Taxi Parquet files are queried using DuckDB. This dashboard displays precomputed, versionable SQL output rather than loading millions of rows into a visitor's browser.

Pickup volume is observed trip activity, not unserved demand. These records do not measure available vehicles, driver shifts, or dispatch response times. Data-quality exceptions are reported separately and are not silently discarded.