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

"I got asked a hardcore MCM DP question and I saw it on PracHub as well. Solved that question in 5 minutes. Without PracHub I doubt I could solve it in 5 hours. Though somehow didn't get hired, perhaps I guess I solved it too fast? /s"

"Believe me i'm a student here jn US. Recently interviewed for MSFT. They asked me exact question from PracHub. I saw it the night before and ignored it cause why waste time on random sites. I legit wanna go back and redo this whole thing if I had chance. Not saying will work for everyone but there is certainly some merit to that website. And i'm gonna use it in future prep from now on like lc tagged"

"10 years of experience but never worked at a top company. PracHub's senior-level questions helped me break into FAANG at 35. Age is just a number."

"I was skeptical about the 'real questions' claim, so I put it to the test. I searched for the exact question I got grilled on at my last Meta onsite... and it was right there. Word for word."

"Got a Google recruiter call on Monday, interview on Friday. Crammed PracHub for 4 days. Passed every round. This platform is a miracle worker."

"I've used LC, Glassdoor, and random Discords. Nothing comes close to the accuracy here. The questions are actually current — that's what got me. Felt like I had a cheat sheet during the interview."

"The solution quality is insane. It covers approach, edge cases, time complexity, follow-ups. Nothing else comes close."

"Legit the only resource you need. TC went from 180k -> 350k. Just memorize the top 50 for your target company and you're golden."

"PracHub Premium for one month cost me the price of two coffees a week. It landed me a $280K+ starting offer."

"Literally just signed a $600k offer. I only had 2 weeks to prep, so I focused entirely on the company-tagged lists here. If you're targeting L5+, don't overthink it."

"Coaches and bootcamp prep courses cost around $200-300 but PracHub Premium is actually less than a Netflix subscription. And it landed me a $178K offer."

"I honestly don't know how you guys gather so many real interview questions. It's almost scary. I walked into my Amazon loop and recognized 3 out of 4 problems from your database."

"Discovered PracHub 10 days before my interview. By day 5, I stopped being nervous. By interview day, I was actually excited to show what I knew."

"I recently cleared Uber interviews (strong hire in the design round) and all the questions were present in prachub."
"The search is what sold me. I typed in a really niche DP problem I got asked last year and it actually came up, full breakdown and everything. These guys are clearly updating it constantly."
Compute ad revenue metrics by geography in SQL
You work on a marketplace app that shows shop ads. You are given the following tables. Assumptions - All timestamps are stored in UTC. - “Revenue” is ...
Write dating profile report with final reviews
Today is 2025-09-01. You need a daily dating-profile quality and engagement report that only includes profiles whose latest version has a final approv...
Compute unread and multi-account user percentages
You’re given two tables. Write ANSI-SQL to answer parts (a)–(d). Treat a notification as unread if read_at IS NULL. Denominator for user-level percent...
Compute daily post success rate for last 7 days
You have a table composer(user_id INT, event STRING CHECK(event IN ('enter','post','cancel')), event_date DATE). Compute the post success rate for eac...
Compute survey rates and bias-correct ratings
Today is 2025-09-01. Use the schema and sample data below to answer A and B with SQL (standard SQL; you may use CTEs and window functions). Assume tim...
Compute CTR for peak vs non-peak hours
You work on a video ads platform. You are given three tables and asked to compare CTR during peak hours vs non-peak hours. Tables Assume the following...
Write SQL for CTR and Revenue
You are given the following tables: ads( ad_id BIGINT, advertiser_id BIGINT, ad_type VARCHAR, -- values include direct and brand ad...
Define and compute shop visibility in SQL
You own the 'shop visibility' KPI for a marketplace. Define a precise metric and write SQL to compute it over the last 7 days (use today = 2025-09-01,...
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, ...
Analyze advertiser spend by source
You are given two tables: advertisers - advertiser_id BIGINT - advertiser_type VARCHAR — examples: smb, enterprise, agency, internal - status VARCHAR ...
Compute multi-account user distribution and unread pct
You are working on a product where a user can have multiple accounts, and each account can receive notifications. Tables Assume the following schemas:...
Define and analyze new-vs-existing activity
Ambiguous product question: Are existing users more active than new users over the last 28 days (ending today = 2025-09-01)? 1) Propose two reasonable...
Calculate Total Revenue in USD Using SQL Query
ads_revenue +---------+------------+---------+----------+ | ad_id | country | revenue | currency | +---------+------------+---------+----------+ ...
Write SQL for seller and category metrics
Assume the following marketplace tables. Table: listing_interactions - buyer_id STRING - seller_id STRING - product_id STRING - interaction_date DATE ...
Write SQL to compute shop visibility share
Assume today is 2025-09-01. Compute the top 3 shops by average daily visibility share over the last 7 days (2025-08-26 to 2025-09-01, inclusive) for U...
Compute view prevalence from views and labels
Given the tables below, write SQL to compute view prevalence of violating content. Use “today” = 2025-09-01 and report the last 7 days (2025-08-26 to ...
Calculate Engagement Metrics for Info-Stream Content Analysis
info_stream_views +----------+-----------+--------------+----------+------------+ | post_id | viewer_id | relationship | duration | ds | +---...
Write SQL for multi-account metrics
A consumer app allows one user to own multiple accounts. Use SQL to answer the following questions. Assume the database has these tables: accounts - a...
Analyze Seller Activity and Vehicle Listing Interactions
Analyze Seller Activity and Vehicle Listing Interactions listing_interaction +-----------+-----------+------------+------------+----+ | buyer_id | se...
Find posts with >60s unconnected viewing time
Context You work on a social app where users can view posts. A view can be from a connected user (viewer is friends/connected with the post author) or...