Groups Join Request Funnel at the User and Group Grain

Last updated: November 29, 2026

Quick Overview

For join requests to private Facebook Groups, compute the share of requests that were approved by an admin and the share of approved requests where the member posted or commented within 14 days, counting each (user, group) pair once.

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

0

0

0 solved


For join requests to private Facebook Groups, compute the share of requests that were approved by an admin and the share of approved requests where the member posted or commented within 14 days, counting each (user, group) pair once.

A funnel at a compound grain, typical of Meta's onsite SQL interview for community products. The interviewer checks that you pick the right unit (a user can request many groups), dedupe repeat requests, and anchor later steps to the approval time.

What the Interviewer Expects
  • Chooses (user, group) as the funnel unit and explains why
  • Dedupes repeated requests to the first one
  • Anchors the engagement window to the approval time
  • Uses LEFT JOINs so unapproved requests stay in the denominator
  • Splits results by group size bucket to make them actionable
Key Topics to Cover
compound grain
funnel
deduplication
time-anchored window
Facebook Groups
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
  • How would you measure admin response time and its effect on activation?
  • Why might per-user rather than per-pair counting mislead here?
  • How would you handle requests that were declined and then re-requested?
  • What would you check before blaming low activation on the admins?
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

Tables: join_requests(user_id, group_id, request_ts), request_decisions(user_id, group_id, decision, decided_ts), group_activity(user_id, group_id, action, action_ts) with action post or `comm...

Approach

Dedupe requests to (user, group, first_request_ts). Join the first approval at or after the request. Then check for activity within 14 days of approval with an EXISTS-style aggregate. Aggregate by a...


Submit Your Answer
Markdown supported