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."
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...
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...
Compute callers contacting >3 people last 7 days
Using the schema below, write a single SQL query to return the number of unique callers who started calls with more than 3 distinct other users during...
Write SQL for initiators and French DAU%
You are given the following PostgreSQL tables. Assume all timestamps are UTC and "today" is 2025-09-01. For any reference to "last 7 days," use the in...
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...
Compute shop visibility and intent metrics in SQL
Schema (PostgreSQL). Tables: users(user_id) shops(shop_id, shop_name, merchant_type) posts(post_id, shop_id, is_shoppable BOOLEAN, created_at TIMESTAM...
Compute multi-account actives and unread coverage
You have two tables. Table: notifications +--------+------------+------------+-------------------+--------+ | userid | ds | time | notification_type |...
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...
Compute 7-day views and reactions by relationship
Use the schemas and sample data below to answer two tasks. Assume dates are strings in 'YYYY-MM-DD'. Treat "today" as 2025-09-01; "last/past 7 days" m...
Analyze Recent User Engagement in Video Calls
calls +-----------+-----------+---------------------+---------+---------+ | caller_id | callee_id | call_start_timestamp| country | call_id | +-------...
Analyze User Engagement Metrics for Video-Calling App
Calls +--------+-----------+------------+---------+----------+ | caller | recipient | ds | call_id | duration | +--------+-----------+--------...
Calculate Distinct High-View Posts and Spam View-Prevalence
content_views | user_id | post_id | view_count | view_date | | 101 | 572 | 3 | 2021-11-01 | | 102 | 732 | 5 | 2021-1...
Calculate Response Rate and Compare New vs. Existing User Scores
survey_events +---------+------------+-----------+--------------+---------------------+ | user_id | is_new_user| responded | survey_score | event_time...
Forecast Next Year's Revenue Using YoY% Analysis
ad_revenue +------------+---------+ | date | revenue | +------------+---------+ | 2023-01-01 | 1000 | | 2023-01-02 | 1200 | | 2024-01-01 |...
Analyze Oculus App Engagement with SQL Queries
AppUsage +---------+--------+-----------+--------------+------------+ | user_id | app_id | category | minutes_spent| usage_date | +---------+--------...
Retrieve Ad Metrics and Rates for Last 7 Days
ads +--------+---------------+----------+ | ad_id | advertiser_id | ad_type | +--------+---------------+----------+ | 101 | 1001 | image...
Calculate Shop Visibility Ranking in Search Results
shop_impressions +------------+---------+----------+--------+ | date | shop_id | position | clicks | +------------+---------+----------+--------...
Identify Duplicate Posts by User and Date
posts +---------+---------+---------------------+---------------+ | post_id | user_id | created_at | content | +---------+---------+---...
Analyze Recent User Activity from Video Call Logs
video_calls caller | recipient | ds | call_id | duration 123 | 456 | 2019-01-01 | 4325 | 864.4 032 | 789 | 2019-01-01 | 9395 | 263.7 456 | 032 | 2019-...
Identify Shops with Low Weekly Visibility Rates
SHOP_VISIBILITY +-----------+---------+------------+---------+ | shop_id | user_id | view_date | visible | +-----------+---------+------------+----...