Spotify-like service SoundWave wants to identify highly active listeners. Write a SQL query to find users who listened to more than five distinct playlists during the 30-day period ending on September 15, 2026.
user_id, display_name, unique_playlists, and total_listens.unique_playlists descending, then total_listens descending, and finally user_id ascending. Listening events outside the fixed 30-day period are excluded.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique user identifier |
| display_name | VARCHAR(100) | User-facing display name |
| Column | Type | Description |
|---|---|---|
| playlist_idPK | INT | Unique playlist identifier |
| playlist_name | VARCHAR(150) | Playlist title |
| Column | Type | Description |
|---|---|---|
| listen_idPK | INT | Unique listening event identifier |
| user_id | INT | User who listened |
| playlist_id | INT | Playlist associated with the listening event |
| listened_at | TIMESTAMP | Timestamp of the listening event |