Perform data wrangling operations (joins, group by, window functions) on provided datasets.
Calculate each customer's qualifying revenue from completed orders placed in 2025. Include customers without qualifying orders, assign their rank within their segment by revenue, and retain customers whose segment is NULL.
Output
- One row per customer with
customer_name, segment, total_revenue, and revenue_rank
- Include all customers, including those with zero qualifying revenue
- Sort by
segment ascending with NULL segments first, then revenue_rank ascending and customer_name ascending