#15

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.

citytotal_orders
San Francisco4
Boston3
New York3
Robinhood

Your query result will appear here

Focus radio
Paused · SomaFM · Fluid