Meta Quest Users Who Return for a Second Session Within Two Days

Last updated: November 29, 2026

Quick Overview

Given VR headset session records, find for each activation week the share of new Quest users whose second session starts within 48 hours after their first session ends.

Meta
Data Manipulation (SQL/Python)
Data Scientist
Meta
November 29, 2026
Data Scientist
Onsite
Data Manipulation (SQL/Python)
Medium

0

0

0 solved


Given VR headset session records, find for each activation week the share of new Quest users whose second session starts within 48 hours after their first session ends.

An early-retention funnel in the style of Meta's Reality Labs analytics onsite. The interviewer wants a clean use of ROW_NUMBER or LEAD to locate the first two sessions, a window measured from the end of session one, and thought about what counts as a session on a headset.

What the Interviewer Expects
  • Ranks sessions per user to find the first and second
  • Measures the window from the end of the first session
  • Groups by the week of the first session
  • Excludes users whose 48-hour window is not complete
  • Filters out very short sessions that are not real use
Key Topics to Cover
ROW_NUMBER
LEAD
early retention
window from event end
Meta Quest
How to Approach This
  1. Clarify the schema and expected output format before writing queries.
  2. Use CTEs (WITH clauses) to break complex queries into readable steps.
  3. Consider window functions (ROW_NUMBER, RANK, LAG, LEAD) for ranking and sequential analysis.
  4. Watch for NULLs, duplicates, and edge cases in JOINs and GROUP BY.
  5. For pandas, prefer vectorized operations over row-by-row iteration.
Possible Follow-up Questions
  • Why measure from the end of the first session instead of its start?
  • How would you treat setup and tutorial time in the first session?
  • How would you look at this by the first app opened?
  • Would you exclude sessions under one minute, and how would that change the metric?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice SQL Problems
Sample Answer
Clarify the Data

quest_sessions(user_id, device_id, session_start, session_end), already built by the platform. Very short sessions (under 60 seconds, often accidental wake-ups) are dropped first. A user returns if ...

Approach

Filter short sessions, then use LEAD(session_start) ordered by start to put each session's next start on the same row, and ROW_NUMBER to keep the first session. That gives one row per user with fi...


Submit Your Answer
Markdown supported