A ticket marketplace wants to identify the most searched events in each city. Write a SQL query to find the top three events per city based on ticket searches recorded during the thirty-day period ending on September 15, 2026.
city, event_id, event_name, search_count, and city_rank.event_id, and return only the first three events per city.city, then city_rank, then event_id.| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique event identifier |
| event_name | VARCHAR(150) | Name of the event |
| city | VARCHAR(80) | City where the event takes place |
| Column | Type | Description |
|---|---|---|
| search_idPK | INT | Unique ticket search identifier |
| event_id | INT | Event searched for, when available |
| searched_at | TIMESTAMP | Timestamp when the search occurred |