PracHub
QuestionsLearningGuidesInterview Prep

Quick Overview

This question evaluates the ability to manipulate temporal event data and reconstruct current state using SQL or Python, focusing on event sequencing, aggregation, and deduplication competencies.

  • medium
  • Meta
  • Data Manipulation (SQL/Python)
  • Data Engineer

Count active follow connections

Company: Meta

Role: Data Engineer

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Onsite

##### Question Write SQL to return the current number of active follow connections. Events table columns: user_id, target_id, event_type ('request_follow', 'follow_success', 'follow_reject', 'unfollow'), event_time. A connection is active only after a 'follow_success' that has not been undone by a later 'unfollow'.

Quick Answer: This question evaluates the ability to manipulate temporal event data and reconstruct current state using SQL or Python, focusing on event sequencing, aggregation, and deduplication competencies.

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

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding 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

  • Calculate Daily Survey Response Rates by Country - Meta (medium)
  • Compare Survey Satisfaction for New and Established Users - Meta (medium)
  • Find A Low-Quality Annotator From Label Data - Meta (hard)
  • Analyze Thirty-Day Ad Performance with SQL - Meta (medium)
  • Compute Each Advertiser's Share of Shop Ad Spend - Meta (medium)