Meta Data Manipulation (SQL/Python) Interview Questions
Practice 1,159 real Meta interview questions for 2026. Covers top categories — Coding & Algorithms, Analytics & Experimentation, Data Manipulation (SQL/Python), Behavioral & Leadership, and System Design — across Software Engineer, Data Scientist, Machine Learning Engineer, Data Engineer, and Product Manager roles. Real questions from actual interviews with detailed solutions. Expect a software-engineering-heavy loop: timed algorithmic coding (trees, arrays, graph/maze problems, delimiter/CSV parsing), system-design prompts like leaderboards, flight search and online-judge architectures, and an increasingly common AI-assisted coding round that mirrors real workflows. Data Scientist rounds emphasize product analytics and experimentation—designing tests, diagnosing spend drops and bots, evaluating unconnected content, and writing SQL for multi-account, seller, and vehicle metrics. Machine Learning Engineer questions skew toward recommender and ranking work (place and friend recommendation, sparse-matrix ops, linear-regression derivations, newsfeed dislike models). Data Engineers focus on data modeling, ETL, capacity calculations, reservations/utilization queries, and production SQL/Python tasks. For interview preparation, prioritize timed coding practice, system-design templates, rigorous SQL drills (joins/CTEs/aggregation), clear A/B-testing frameworks, and concise STAR behavioral stories tied to measurable impact.

"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 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...
Implement randomized Quickselect without k-shift bug
Implement randomized Quickselect to return the k-th largest element (1-based k, 1 ≤ k ≤ n) from an unsorted integer array. Use an in-place partition t...
Compute 95th-percentile call concurrency
Given N call sessions as half-open intervals [start, end) in UNIX seconds, design an algorithm to compute the 95th percentile of per-minute concurrent...
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...
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,...
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...
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...
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...
Build a Bayes classifier for reviewer types
This question evaluates Bayesian inference skills, including posterior updating under conditional independence, likelihood modeling for categorical ob...
Write advanced SQL for sales support analytics
Write SQL for the following schema and tasks. Assume ANSI SQL with DATE_TRUNC and INTERVAL supported. Sample tables (minimal rows shown). accounts +--...
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...
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...
Write SQL for social feed metrics and ties
You are given the following schema (PostgreSQL) and sample rows. Assume UTC timestamps and that friendships are static over the sample window. users(u...
Compute multi-account activity and unread percentages in SQL
You are given two tables. Use them as the source of truth and do not assume any other data. Table: notifications +--------+------------+------------+-...
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...
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...
Merge two interval lists into a union
You are given two lists of closed intervals [start, end]. Each list is individually sorted by start and contains non-overlapping intervals. Merge the ...
Optimize ribbon piece length by binary search
Given an array lengths of positive integers and an integer k, you may cut each element into pieces of integer length L > 0. Find the maximum L such th...