Meta Data Scientist Data Manipulation (SQL/Python) Interview Questions

Practice 151 real Data Manipulation (SQL/Python) interview questions for Data Scientist roles at Meta.

151 Questions 1 Company07.06.2026
Showing 20 results
Role
Meta logo
Meta
Medium
Data Scientist

Write SQL filtering, grouping, CASE, UNION tasks

Use the following schema and sample data to answer all parts. Assume standard ANSI SQL and that amounts are DECIMAL. Table: orders +----------+-------...

Data Manipulation (SQL/Python)
0
0
5 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Build DiD dataset with SQL

Using the schema and sample data below, write SQL to build an individual-day panel suitable for staggered-adoption DiD of the shuttle’s effect on part...

Data Manipulation (SQL/Python)
4
0
56 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Write SQL to compare exclusive category engagement

You are given session-level data and must compare engagement between users who exclusively used the 'social' category versus those who exclusively use...

Data Manipulation (SQL/Python)
0
0
4 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Write SQL for hashtag analytics and joins

Assume today = 2025-09-01. Schema and small sample data are below. Use ANSI SQL; explain any dialect-specific functions you choose. Where asked, expla...

Data Manipulation (SQL/Python)
1
0
2 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Write SQL to localize anomaly and funnel

Given the schema and toy data below, write SQL to (a) validate instrumentation vs behavior change, (b) localize the 2025-09-01 Likes drop by app_versi...

Data Manipulation (SQL/Python)
0
0
5 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Calculate posts per DAU by country today

Given two tables: - user_activity(user_id INT, activity_date DATE, country STRING, dau_flag TINYINT CHECK(dau_flag IN (0,1))) - composer(user_id INT, ...

Data Manipulation (SQL/Python)
4
0
42 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Write SQL with HAVING and efficient joins

You are given two tables. Schema - interactions(product_id INT, buyer_id INT, seller_id INT, interaction_date DATE, interaction_type VARCHAR, interact...

Data Manipulation (SQL/Python)
0
0
5 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Compute French DAU video-call percentage yesterday

Compute the percentage of daily active users (DAU) from France who were on at least one video call yesterday (2025-08-31 UTC). DAU is defined as users...

Data Manipulation (SQL/Python)
0
0
2 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Write SQL for 7-day WhatsApp call metrics

Today is fixed as 2025-09-01. Using PostgreSQL, write a single query that returns one row per UTC calendar date for the last 7 days inclusive of today...

Data Manipulation (SQL/Python)
0
0
4 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Write SQL for revenue and advertiser analyses

Use the schema below and ANSI SQL. Treat “today” as 2025-09-01. Schema: - active_ads(date DATE, ad_id INT, advertiser_id INT, creation_source VARCHAR,...

Data Manipulation (SQL/Python)
0
0
6 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Write SQL for comment analytics

You are given the following schema and tiny sample data. Schema: - users(user_id INT PRIMARY KEY, country VARCHAR, created_at DATE) - posts(post_id IN...

Data Manipulation (SQL/Python)
0
0
6 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Write SQL to infer group-call demand

You are given only 1:1 call logs and a user table. Use SQL to estimate latent demand for a 'Group Call' feature by detecting 10-minute 'call loops' wh...

Data Manipulation (SQL/Python)
1
0
4 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Write SQL to flag coordinated fake accounts

Assume today is 2025-09-01. Schema and tiny samples: users(user_id, created_at, country) 1 | 2025-07-01 | US 2 | 2025-08-10 | IN 3 | 2025-08-15 | US 4...

Data Manipulation (SQL/Python)
0
0
7 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Join datasets and compute conversion by assignment

You are given two CSVs. Create tables and write SQL to produce both visit-level and visitor-level conversion datasets, then aggregate conversion by as...

Data Manipulation (SQL/Python)
0
0
5 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Compute time-spent percentage by app category

You work on Oculus app engagement analytics. Tables user_activity - user_id (BIGINT) - date (DATE) — day of activity (assume UTC) - app_id (INT) - ses...

Data Manipulation (SQL/Python)
6
0
51 people solved
Aug 17, 2025
Meta logo
Meta
Medium
Data Scientist

Analyze Bookstore Data to Identify Top Payment Methods

books +---------+------------+----------+-------+ | book_id | title | author_id| price | +---------+------------+----------+-------+ | 1 | ...

Data Manipulation (SQL/Python)
0
0
5 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Data Scientist

Forecast Next Year's Revenue Using YoY% Analysis

ad_revenue +------------+---------+ | date | revenue | +------------+---------+ | 2023-01-01 | 1000 | | 2023-01-02 | 1200 | | 2024-01-01 |...

Data Manipulation (SQL/Python)
1
0
2 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Data Scientist

Analyze Cross-Country Call Data for Recent Trends

Users +---------+-------------+----------+ | user_id | signup_date | country | +---------+-------------+----------+ | 1 | 2021-01-04 | US ...

Data Manipulation (SQL/Python)
0
0
8 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Data Scientist

Identify Duplicate Posts by User and Date

posts +---------+---------+---------------------+---------------+ | post_id | user_id | created_at | content | +---------+---------+---...

Data Manipulation (SQL/Python)
1
0
6 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Data Scientist

Resolve Ties for Top-10 Users in SQL Query

Oculus_Scores +---------+-------+ | user_id | score | +---------+-------+ | u1 | 95 | | u2 | 92 | | u3 | 90 | | u4 | 90 ...

Data Manipulation (SQL/Python)
71
0
216 people solved
Aug 4, 2025

Explore more Meta Data Scientist interview questions

Real questions from candidate reports, grouped by topic.

Other Meta Data Scientist categories
Browse all