Multi-CTE pipeline with two derived facts (charges per provider, collections per provider via the claim→remit chain) and a partitioned RANK within department. The exercise teaches the load-bearing 'fact_charges → fact_claims → fact_remits' chain plus rank-within-group, both core RCM patterns.