Write a SQL query using window functions to identify the top three most-played games per region.
Use total play minutes as the measure of play activity. Include only games with recorded sessions, return up to three games per region, and break ties alphabetically by game name.
region_name, game_name, total_play_minutes, and play_rank.region_name, then play_rank.| Column | Type | Description |
|---|---|---|
| region_idPK | INT | Unique region identifier |
| region_name | VARCHAR(100) | Display name of the PlayStation Global region |
| Column | Type | Description |
|---|---|---|
| game_idPK | INT | Unique game identifier |
| game_name | VARCHAR(150) | Game title |
| Column | Type | Description |
|---|---|---|
| session_idPK | INT | Unique play session identifier |
| region_id | INT | Region associated with the session |
| game_id | INT | Game played during the session |
| minutes_played | INT | Minutes played during the session |