Twitch·Data Scientist·Technical Phone Screen
Jun 2026
SQL-heavy technical screen for a Data Scientist role at Twitch, all revolving around two streaming tables. Four questions, each building on the last, and the multi-year edge case stuff caught me more off guard than I'd like to admit.
- Using the minute_streamed table, write a query that returns total hours streamed for each calendar month, ordered chronologically. Also explain how your query handles data that spans multiple years.
- For each streamer, compute their total streamed hours and the percentage of those hours spent streaming content in a category that matches a given keyword. The match should be case-insensitive.
- Identify all streamers whose total streamed hours in a given month exceeded their total from the prior month. Your solution needs to handle multiple years of data and months where a streamer had no activity at all.
- Join minute_streamed and minute_viewed to produce, per streamer, their average concurrent viewers in 2019 and the total minutes watched by viewers from the US in 2019.
“Went straight to COUNT(*)/60 grouped by month and forgot to include year in the group-by key.” The rest of the author's notes on Data Scientist interview at Twitch, Technical Phone Screen round, covers how they worked through the question, what the panel pushed back on, and what they would do differently.
View Post