Highest-revenue city
Finance wants the flagship city. Find the city with the highest total fare from completed trips; on a tie, take the alphabetically earlier city. Return city and revenue, a single row.
Esempio di output atteso
Ecco come appare una risposta corretta — il suo numero di righe è a sé stante, non deve corrispondere alle tabelle dello schema.
| city | revenue |
|---|---|
| Moscow | 1200 |
Accedi per vedere la cronologia degli invii
AccediAccedi per usare l'AI Mentor
Accedi