Write a query to find the top three facilities by maintenance cost over the last quarter, partitioned by region.
For grading, treat the last quarter as April 1, 2025 through June 30, 2025. Include only facilities with the three highest totals in their region, with facility ID as the tie-breaker.
Output
- One row per selected facility, with
region_name, facility_name, total_maintenance_cost, and facility_rank.
- Include up to three facilities per region, ordered by
region_name, facility_rank, and facility_id.