Path capstone. Multi-CTE pipeline that combines aggregation, parallel window functions (NTILE quartiles + RANK within payer), and CASE-based segment labeling. The output is the patient revenue file that finance teams use for collections prioritization, charity-care assignment, and bad-debt cohort sizing. Every Hard / Expert pattern in this path appears in this one query.