Top Travellers by Distance
For each user return their name and total distance travelled across all rides. Sort by travelled_distance descending.
Expected output sample
This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.
| name | travelled_distance |
|---|---|
| Bob | 370 |
| Alice | 300 |
| Dave | 300 |
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in