Write a solution to report the distance traveled by each user.
Return the result table ordered by travelled_distance
in descending order, if two or more users traveled the same distance, order them by their name
in ascending order.
The result format is in the following example.
SELECT U.name, IFNULL(SUM(R.distance), 0) as travelled_distance
FROM Users as U LEFT JOIN Rides as R ON U.id = R.user_id
GROUP BY R.user_id
ORDER BY 2 desc, 1 asc;