SELECT city, driver_id, avg_grade, avg_order_num, avg_mileage FROM ( SELECT tr.city, bo.driver_id, round( sum( bo.grade ) / count( bo.grade ), 1 ) avg_grade, round( count( date_format( bo.order_time, "%Y-%m-%d" ) ) / count( DISTINCT date_format( bo.order_time, "%Y-%m-%d" ) ), 1...