PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Data Manipulation (SQL/Python)/Meta

Analyze Seller Activity and Vehicle Listing Interactions

Last updated: Mar 29, 2026

Quick Overview

This question evaluates SQL- and Python-based data manipulation skills, particularly temporal filtering, joins, group aggregations, and categorical percentage calculations on transactional datasets, assessing competency in deriving per-entity metrics and summarizing interactions.

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

Analyze Seller Activity and Vehicle Listing Interactions

Company: Meta

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: Medium

Interview Round: Technical Screen

listing_interaction +-----------+-----------+------------+------------+----+ | buyer_id | seller_id | date | product_id | li | +-----------+-----------+------------+------------+----+ | 123 | 456 | 2019-01-01 | 4325 | 7 | | 32 | 789 | 2019-01-01 | 9395 | 3 | | 456 | 32 | 2019-01-01 | 879 | 1 | +-----------+-----------+------------+------------+----+ ​ dim_all_product +------------+----------+------------+------------+---------+ | product_id | category | date | create_date| country | +------------+----------+------------+------------+---------+ | 123 | Vehicle | 2019-01-01 | 2018-12-21 | US | | 32 | Home | 2019-01-01 | 2018-11-01 | CA | | 456 | Housing | 2019-01-01 | 2018-12-15 | UK | +------------+----------+------------+------------+---------+ ##### Scenario Marketplace SQL analysis for buyer–seller interactions and product categories. ##### Question 1A) For the last 3 calendar days, how many distinct sellers have more than three products where each product has li > 1? 1B) Among listings created in the US within the last 7 days, what percentage of total listing interactions (li) comes from the ‘Vehicle’ category? ##### Hints Use windowed date filters, group by seller_id/product_id, and conditional aggregation for percentages.

Quick Answer: This question evaluates SQL- and Python-based data manipulation skills, particularly temporal filtering, joins, group aggregations, and categorical percentage calculations on transactional datasets, assessing competency in deriving per-entity metrics and summarizing interactions.

Related Interview 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)
Meta logo
Meta
Aug 4, 2025, 10:55 AM
Data Scientist
Technical Screen
Data Manipulation (SQL/Python)
2
0

listing_interaction

+-----------+-----------+------------+------------+----+ | buyer_id | seller_id | date | product_id | li | +-----------+-----------+------------+------------+----+ | 123 | 456 | 2019-01-01 | 4325 | 7 | | 32 | 789 | 2019-01-01 | 9395 | 3 | | 456 | 32 | 2019-01-01 | 879 | 1 | +-----------+-----------+------------+------------+----+

​

dim_all_product

+------------+----------+------------+------------+---------+ | product_id | category | date | create_date| country | +------------+----------+------------+------------+---------+ | 123 | Vehicle | 2019-01-01 | 2018-12-21 | US | | 32 | Home | 2019-01-01 | 2018-11-01 | CA | | 456 | Housing | 2019-01-01 | 2018-12-15 | UK | +------------+----------+------------+------------+---------+

Scenario

Marketplace SQL analysis for buyer–seller interactions and product categories.

Question

1A) For the last 3 calendar days, how many distinct sellers have more than three products where each product has li > 1? 1B) Among listings created in the US within the last 7 days, what percentage of total listing interactions (li) comes from the ‘Vehicle’ category?

Hints

Use windowed date filters, group by seller_id/product_id, and conditional aggregation for percentages.

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More Data Manipulation (SQL/Python)•More Meta•More Data Scientist•Meta Data Scientist•Meta Data Manipulation (SQL/Python)•Data Scientist Data Manipulation (SQL/Python)
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.