select city,driver_id,avg_grade,avg_order_num,avg_mileage from (select city, driver_id, round(avg_grade,1)avg_grade, round(order_num/workdays,1) as avg_order_num, round(sum_mileage/workdays,3) as avg_mileage, rank()over(partition by city order by avg_grade desc) as rk from (select city, driv...