Query the lakehouse

Write SQL against the gold tables of the flight-delay lakehouse, plus every flight of the newest month. DuckDB runs inside your browser on files exported from the Delta tables after the latest run (BTS data 2024-10 to 2026-09), so nothing is sent to a server.

Back to the dashboardCode on GitHub
Loading DuckDB…

The first visit downloads DuckDB and the tables (15.5 MB); your browser caches them afterwards. Results show up to 1,000 rows; the CSV download has them all.

Tables

flights 570,266 rows

Every flight of the newest month (2026-09) in the lake (silver layer, one row per flight). The full 24 months are in the Delta tables saved with each release.

  • flight_date date – Date of the flight
  • carrier varchar – Two-letter BTS carrier code (join dim_carrier for the name)
  • flight_number integer – Flight number
  • tail_number varchar – Aircraft registration (tail number)
  • origin varchar – Departure airport
  • dest varchar – Arrival airport
  • crs_dep_time integer – Scheduled departure time, local, as HHMM
  • dep_hour integer – Scheduled departure hour, local time (0-23)
  • day_of_week integer – 1 = Sunday … 7 = Saturday
  • dep_delay double – Departure delay, minutes
  • arr_delay double – Arrival delay, minutes (negative = early)
  • on_time_arrival boolean – Arrived less than 15 minutes late (empty if cancelled or diverted)
  • cancelled boolean – Cancelled flights
  • cancellation_code varchar – A = carrier, B = weather, C = National Aviation System, D = security
  • diverted boolean – Diverted flights
  • distance_mi double – Distance, miles
  • air_time_min double – Minutes in the air
  • taxi_out double – Minutes from gate to wheels-off
  • carrier_delay double – Delay minutes: carrier
  • weather_delay double – Delay minutes: extreme weather
  • nas_delay double – Delay minutes: National Aviation System
  • security_delay double – Delay minutes: security
  • late_aircraft_delay double – Delay minutes: late-arriving aircraft
carrier_month 326 rows

On-time, cancellation and delay-cause totals by carrier and month

  • year_month varchar – Month, as YYYY-MM
  • carrier varchar – Two-letter BTS carrier code (join dim_carrier for the name)
  • flights bigint – Scheduled flights
  • completed bigint – Flights that were neither cancelled nor diverted
  • on_time bigint – Completed flights that arrived less than 15 minutes late
  • cancelled bigint – Cancelled flights
  • diverted bigint – Diverted flights
  • avg_arr_delay double – Average arrival delay of completed flights, minutes (early arrivals count as negative)
  • avg_dep_delay double – Average departure delay of completed flights, minutes
  • carrier_delay_min double – Delay minutes the airline attributed to itself
  • weather_delay_min double – Delay minutes from extreme weather
  • nas_delay_min double – Delay minutes from the National Aviation System (air traffic control, non-extreme weather, airport operations)
  • security_delay_min double – Delay minutes from security
  • late_aircraft_delay_min double – Delay minutes because the plane arrived late from its previous flight
  • on_time_rate double – on_time / completed
  • cancel_rate double – cancelled / flights
airport_month 8,204 rows

Departure performance and taxi-out times by origin airport and month

  • year_month varchar – Month, as YYYY-MM
  • airport varchar – Three-letter airport code
  • flights bigint – Scheduled flights
  • completed bigint – Flights that were neither cancelled nor diverted
  • on_time bigint – Completed flights that arrived less than 15 minutes late
  • cancelled bigint – Cancelled flights
  • diverted bigint – Diverted flights
  • avg_arr_delay double – Average arrival delay of completed flights, minutes (early arrivals count as negative)
  • avg_dep_delay double – Average departure delay of completed flights, minutes
  • avg_taxi_out double – Average minutes from gate to wheels-off
  • on_time_departure_rate double – Share of flights that left less than 15 minutes late
  • on_time_rate double – on_time / completed
  • cancel_rate double – cancelled / flights
route_month 140,639 rows

Performance of every origin-destination route by month

  • year_month varchar – Month, as YYYY-MM
  • origin varchar – Departure airport
  • dest varchar – Arrival airport
  • flights bigint – Scheduled flights
  • completed bigint – Flights that were neither cancelled nor diverted
  • on_time bigint – Completed flights that arrived less than 15 minutes late
  • cancelled bigint – Cancelled flights
  • diverted bigint – Diverted flights
  • avg_arr_delay double – Average arrival delay of completed flights, minutes (early arrivals count as negative)
  • avg_dep_delay double – Average departure delay of completed flights, minutes
  • p90_arr_delay double – 90th-percentile arrival delay, minutes (approximate)
  • on_time_rate double – on_time / completed
  • cancel_rate double – cancelled / flights
daily 730 rows

National totals for every day

  • flight_date date – Date of the flight
  • flights bigint – Scheduled flights
  • completed bigint – Flights that were neither cancelled nor diverted
  • on_time bigint – Completed flights that arrived less than 15 minutes late
  • cancelled bigint – Cancelled flights
  • diverted bigint – Diverted flights
  • avg_arr_delay double – Average arrival delay of completed flights, minutes (early arrivals count as negative)
  • avg_dep_delay double – Average departure delay of completed flights, minutes
  • on_time_rate double – on_time / completed
  • cancel_rate double – cancelled / flights
hour_weekday 168 rows

On-time departures by scheduled hour and weekday (last 12 months)

  • day_of_week integer – 1 = Sunday … 7 = Saturday
  • dep_hour integer – Scheduled departure hour, local time (0-23)
  • flights bigint – Scheduled flights
  • on_time_departure_rate double – Share of flights that left less than 15 minutes late
delay_causes 120 rows

Minutes of arrival delay by reported cause and month

  • year_month varchar – Month, as YYYY-MM
  • cause varchar – Delay cause as reported by the airline
  • minutes double – Delay minutes
  • share double – Share of the month's delay minutes
delay_propagation 6 rows

How late a plane's next departure is, by how late it arrived from its previous flight (last 12 months)

  • bucket varchar – How late the plane arrived from its previous flight that day
  • bucket_order integer – Sort order of the buckets
  • legs bigint – Plane rotations (arrival followed by a next departure)
  • next_departs_late_rate double – Share of next departures that left 15+ minutes late
  • median_next_dep_delay double – Median departure delay of the next flight, minutes
dim_carrier 15 rows

Carrier codes and names

  • carrier varchar – Two-letter BTS carrier code (join dim_carrier for the name)
  • carrier_name varchar – Airline name
dim_airport 363 rows

Airport codes with their latest city and state

  • airport varchar – Three-letter airport code
  • city varchar – City, as BTS writes it
  • state varchar – State or territory