Data Scientist Data Manipulation (SQL/Python) Interview Questions

Practice 550 real Data Manipulation (SQL/Python) interview questions for Data Scientist roles. From companies including Meta, Amazon, TikTok, Capital One, DoorDash.

550 Questions 84 Companies08.03.2026
Showing 20 results
Role
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
Thumbtack logo
Thumbtack
Medium
Data Scientist

Compute weighted response rates by job category

You are given a CSV with one row per job posting and the following columns: job_id, job_category, invitations_sent (integer >= 0), provider_responses ...

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

Label game performance by margin

Given a games DataFrame (or R data.frame) with columns: team_id, opponent_team_id, team_score, opponent_team_score, write code to: (1) Define a functi...

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

Rank each team’s top 3 scores in 2024

Using the same schema, compute each team’s top 3 highest-scoring games for season_year = 2024, treating each game from BOTH teams’ perspectives (i.e.,...

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

Find 2023 NCAA championship winner

You are given two tables. Schema: team(team_id INT PRIMARY KEY, team_name TEXT); game(game_id INT PRIMARY KEY, team_id INT, opponent_team_id INT, date...

Data Manipulation (SQL/Python)
1
0
8 people solved
Oct 13, 2025
Medium
Data ScientistSenior+

Diagnose zero IE uploads with SQL

On 2025‑09‑01 ('today'), the dashboard shows image uploads for Internet Explorer (IE) dropped to zero. Write SQL to (a) determine if this is a technic...

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

Write SQL to flag Venmo ATO

SQL case: You are a Decision Scientist on Venmo’s Fraud (ATO) team. Using the schema and sample data below, write a single Standard SQL query that ret...

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

Write SQL to backtest refund policy

Using the schema and samples below, write a single SQL query (CTEs allowed) that does all of the following for the last 30 days relative to today = 20...

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

Write SQL to rank categories by impressions

You are given the following schema and sample data. Today is 2025-09-01. Schema: - users(user_id INT, country_id VARCHAR) - countries(country_id VARCH...

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

Build panel in SQL; run causal regression

Assume today is 2025-09-01 (UTC). Schema and small samples: users(user_id INT, country STRING, signup_date DATE, platform STRING) Sample: user_id | co...

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

Compute CTR, RPM, and daily RPM variability in SQL

Write ANSI-Postgres SQL to compute, for each campaign, over the last 7 days inclusive (assume "today" is 2025-09-01, so the window is 2025-08-26 throu...

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

Write SQL for ads metrics and variability

Write ANSI SQL to compute daily and campaign-level metrics, including averages and standard deviations of daily CTR and CPC, using the schema and samp...

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

Compute ARPDAU/ARPPU by country

Using only the two tables below, write a single SQL query that returns, for each day and country in the last 7 days inclusive (2025-08-26 through 2025...

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

Write SQL to flag suspect payments and chargebacks

Assume today is 2025-09-01. Using only CASE WHEN and JOINs (no window functions required), write a single SQL query that produces, for each user with ...

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

Write robust SQL for streaming analytics

Write efficient PostgreSQL SQL for the following streaming analytics tasks. Use the invented schema and sample data below. Handle duplicates, out-of-o...

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

Fix dash dates and aggregate watch time

You receive a CSV of ad viewing logs where the date column repeats only on the first row of each block and subsequent rows use a single dash '-' to in...

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

Write one SQL for exam scores aggregation

You are given an exam database. Write a single SQL statement (CTEs allowed; one final statement only) that satisfies all three requirements below. You...

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

Compute paid subscriber YoY counts by month

Write a single SQL query (PostgreSQL) that returns calendar-month counts of new paid subscribers starting from 2019-06-01 (inclusive) through the late...

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

Solve advanced SQL for streaming analytics

You are given minute-level streaming telemetry. Each row in minute_streamed represents one minute during which a streamer was live; each row in minute...

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

Merge ad CSVs and compute CTR

Using SQL, clean and merge four CSVs and answer all parts exactly. Schema and sample rows (assume types: date is DATE, others INT/VARCHAR): platforms(...

Data Manipulation (SQL/Python)
0
0
5 people solved
Oct 13, 2025

Explore more Data Scientist Data Manipulation (SQL/Python) interview questions

Real questions from candidate reports, grouped by company, topic and role.

By company
Other categories for Data Scientist
Data Manipulation (SQL/Python) questions for other roles
Browse all