PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep

Quick Overview

This question evaluates SQL data-manipulation competency, including aggregation, distinct counting, date filtering and relational pattern detection (three-node cycles) to measure user engagement and group-call signals.

  • Medium
  • Meta
  • Data Manipulation (SQL/Python)
  • Data Scientist

Identify 3-Person Call Cycles in Video-Calling App

Company: Meta

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: Medium

Interview Round: Technical Screen

Calls callerid | recipientid | ds | call_id | duration 1001 | 2001 | 2023-02-20| 555 | 180 2001 | 3001 | 2023-02-20| 556 | 60 3001 | 1001 | 2023-02-20| 557 | 240 1002 | 2002 | 2023-02-18| 558 | 300 1001 | 2003 | 2023-02-19| 559 | 120 ​ Users user_id | age_bucket | country | primary_os | dau_flag | ds 1001 | 25-34 | fr | ios | 1 | 2023-02-20 2001 | 25-34 | fr | android | 1 | 2023-02-20 3001 | 35-44 | us | ios | 0 | 2023-02-20 1002 | 18-24 | de | web | 1 | 2023-02-18 2002 | 25-34 | fr | ios | 0 | 2023-02-18 ##### Scenario A social-media video-calling app wants SQL insights from its Calls and Users tables. ##### Question Write a SQL query that returns the number of distinct users who initiated calls involving more than three unique recipients during the past seven days. Calculate the percentage of yesterday’s daily active users whose country = 'fr' that joined at least one video call. Using only the Calls table, write SQL to detect 3-person call cycles (A→B, B→C, C→A) that suggest group-call demand. ##### Hints Use GROUP BY/HAVING, DISTINCT counts, self-joins for cycles, date filters on ds.

Quick Answer: This question evaluates SQL data-manipulation competency, including aggregation, distinct counting, date filtering and relational pattern detection (three-node cycles) to measure user engagement and group-call signals.

Last updated: Mar 29, 2026

Loading coding console...

PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.

Related Coding Questions

  • Compute ad impression conversion rates - Meta (medium)
  • Count unconnected posts and reactions - Meta (medium)
  • Count heavy callers in 7 days - Meta (medium)
  • Write SQL for call metrics - Meta (medium)
  • Write SQL for multi-account metrics - Meta (medium)