select city,driver_id,round(avg_grade,1) as avg_grade, round(avg_order_num,1) as avg_order_num, round(avg_mileage,3) as avg_mileage from( select *,rank()over(partition by city order by avg_grade desc) as rk from( select city,driver_id,avg(grade) as avg_grade, count(order_id)/count(dist...