TikTok creators need to understand where their audience drops off. We track three specific events in the video player:
Write an SQL query to calculate the overall conversion rates for the entire platform.
| event_id(INTEGER) | user_id(INTEGER) | video_id(INTEGER) | event_type(VARCHAR) | timestamp(TIMESTAMP) |
|---|---|---|---|---|
| 1 | 1 | 10 | started | 2026-02-10 10:00:00 |
| 2 | 1 | 10 | half_watched | 2026-02-10 10:00:15 |
| 3 | 1 | 10 | fully_watched | 2026-02-10 10:00:30 |
| 4 | 2 | 10 | started | 2026-02-10 10:01:00 |
| 5 | 2 | 10 | half_watched | 2026-02-10 10:01:15 |
| 6 | 3 | 11 | started | 2026-02-10 10:02:00 |
| video_id(INTEGER) | creator_id(INTEGER) | duration(INTEGER) |
|---|---|---|
| 10 | 50 | 30 |
| 11 | 51 | 60 |
| 12 | 52 | 15 |
| 13 | 53 | 45 |
| 14 | 54 | 20 |
| 15 | 55 | 120 |
| user_id(INTEGER) | region(VARCHAR) |
|---|---|
| 1 | US |
| 2 | UK |
| 3 | IN |
| 4 | BR |
| 5 | JP |
| 6 | DE |
| half_rate(DECIMAL) | full_rate(DECIMAL) |
|---|---|
| 0.67 | 0.33 |