Warner Bros. Discovery wants to compare viewing preferences across user demographic groups. Write a SQL query to find the three most-watched content genres for each demographic group during the 30-day reporting period ending on September 18, 2026.
demographic_group, genre, total_minutes, and genre_rank.| Column | Type | Description |
|---|---|---|
| session_idPK | INT | Unique streaming session identifier |
| user_id | INT | User associated with the session |
| content_id | INT | Content watched during the session |
| session_start | TIMESTAMP | Session start timestamp |
| minutes_watched | INT | Minutes watched during the session |
| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique user identifier |
| demographic_group | VARCHAR(50) | User demographic classification |
| Column | Type | Description |
|---|---|---|
| content_idPK | INT | Unique content identifier |
| content_title | VARCHAR(150) | Title of the content |
| genre | VARCHAR(50) | Primary content genre |