Write an SQL query using window functions to find the top three most popular games purchased in each geographic region per month.
Use the provided PlayStation Network purchase and game tables. Exclude purchases without a geographic region or matching game.
region, purchase_month, game_name, purchase_count, and popularity_rank.| Column | Type | Description |
|---|---|---|
| purchase_idPK | INT | Unique purchase identifier |
| game_id | INT | Purchased game identifier |
| region | VARCHAR(50) | Geographic region associated with the purchase |
| purchased_at | TIMESTAMP | Timestamp when the game was purchased |
| Column | Type | Description |
|---|---|---|
| game_idPK | INT | Unique game identifier |
| game_name | VARCHAR(150) | PlayStation Network game title |