TikTok wants to track how quickly a sound goes viral. The Remix Velocity of a sound is measured by the number of videos created using that sound within exactly 1 hour of the original video being posted.
Write a query to rank sounds by their Remix Velocity.
| video_id(INTEGER) | sound_id(INTEGER) | created_at(TIMESTAMP) |
|---|---|---|
| 1 | 501 | 2026-03-01 10:00:00 |
| 2 | 501 | 2026-03-01 10:15:00 |
| 3 | 501 | 2026-03-01 10:45:00 |
| 4 | 501 | 2026-03-01 11:30:00 |
| 5 | 502 | 2026-03-01 12:00:00 |
| 6 | 502 | 2026-03-01 12:05:00 |
| 7 | 503 | 2026-03-01 14:00:00 |
| 8 | 503 | 2026-03-01 16:00:00 |
| sound_id(INTEGER) | remix_count(INTEGER) | velocity_rank(INTEGER) |
|---|---|---|
| 501 | 2 | 1 |
| 502 | 1 | 2 |
| 503 | 0 | 3 |