MEDIUMVerified Real Interview• Content Analytics Lead
Movie Duration 90th Percentile
Verified Source:Netflix Data Science Interview Experience
Netflix wants to evaluate content pacing across genres. For each genre that has at least 3 movies, calculate the 90th percentile duration (in minutes).
Write a query to output:
genrep90_duration(rounded to nearest integer)
Order by p90_duration descending.
Table:
movies(movie_idINT,titleVARCHAR,genreVARCHAR,duration_minutesINT)
Execution Sandbox:
Your query executes inside an isolated in-memory PostgreSQL engine (PGlite WebAssembly). You have full access to standard PostgreSQL aggregations, window functions, and CTEs.
Standard SQL (ANSI)|Ln 1, Col 1(7 lines, 110 chars)
Tab Indent⌘↵ Run Query
Ready to execute. Press Run (⌘+Enter)
Write your query and click “Run” or press ⌘+Enter to inspect output.