Top 3 cities by completed trades
Robinhood is analyzing the geography of trading activity. Find the three cities with the highest number of completed trades, where status = 'Completed'. Return the city name and the trade count in the total_orders column. Sort the result by the trade count in descending order.
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.
| city | total_orders |
|---|---|
| San Francisco | 4 |
| Boston | 3 |
| New York | 3 |
Robinhood
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign inFocus radio
Paused · SomaFM · Fluid