Write a SQL query using window functions to rank aircraft by monthly delay minutes within each airline and calculate a running total.
Use the provided airlines, aircraft, and flight_delays tables.
Output
- Return one row per aircraft, airline, and month with
airline_name, aircraft_id, month_start, monthly_delay_minutes, monthly_rank, and airline_running_delay_minutes.
- Rank higher monthly delay totals first within each airline and month. Ties share a rank.
- Order by
airline_name, month_start, and monthly_rank.