SELECT bl.name location,COUNT(DISTINCT u.id) employee_count,SUM(t.final_total) revenue,SUM(t.final_total)/COUNT(DISTINCT u.id) revenue_per_employee FROM business_locations bl JOIN transactions t ON bl.id=t.location_id JOIN users u ON t.created_by=u.id WHERE t.type="sell" GROUP BY bl.id,bl.name ORDER BY revenue_per_employee DESC;