View gigs completed by patient source = client referral

I'd like to view all completed gigs by patients whose patient source is a partner referral. Display these grouped by partner