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
Shopify logo
Shopify
Medium
Data ScientistSenior+ AI Locked

Analyze Pirated Theme Usage

This question evaluates competency in temporal data manipulation, interval-overlap logic, aggregations and joins to calculate monthly usage metrics an...

Data Manipulation (SQL/Python)
6
1
57 people solved
May 23, 2026
Reddit logo
Reddit
Medium
Data ScientistSenior+

Query US-based users and most active forums

You are given user and post data for an online forum platform. Tables (schemas) Assume the following tables: users - user_id BIGINT (PK) - home_countr...

Data Manipulation (SQL/Python)
8
0
140 people solved
Sep 19, 2025
OpenAI logo
OpenAI
Hard
Data Scientist

Write SQL for repeat churn

Write a SQL query to measure the performance of a free-month promotion experiment. Assume experiment_users already contains only users who were eligib...

Data Manipulation (SQL/Python)
36
0
346 people solved
Feb 3, 2026
Meta logo
Meta
Hard
Data Scientist

Compute Heavy-Caller Percentages

You are given two tables that track voice calls and daily active users for a messaging app. Table: call_events - call_id BIGINT — unique call identifi...

Data Manipulation (SQL/Python)
7
0
59 people solved
Jan 2, 2026
Wayfair logo
Wayfair
Easy
Data Scientist

Solve SQL and Python OA tasks

Complete the following two online-assessment tasks. Task A — SQL You are given two tables: customer - customer_id INT - customer_name VARCHAR - purcha...

Data Manipulation (SQL/Python)
4
0
58 people solved
Feb 16, 2026
OpenAI logo
OpenAI
Easy
Data Scientist

Compute signup rate and retention from raw logs

Scenario You are analyzing an A/B test for a marketing campaign offering a free 1-month trial. You are given raw “upstream” tables that resemble produ...

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

Implement robust word counts and min/max

You receive a 50GB UTF-8 text corpus on disk. Implement a Python solution that:\n- Streams the file without loading it fully into memory.\n- Counts ca...

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

Compute a Rolling Seven-Day Revenue Sum with Missing Dates

Solve a PostgreSQL rolling-revenue problem that needs a complete daily series per seller, including no-order dates. It assesses UTC date handling, gap...

Data Manipulation (SQL/Python)
7
0
63 people solved
Jun 4, 2026
Waymo logo
Waymo
Easy
Data Scientist Locked

Merge overlapping intervals per group in pandas

This question evaluates proficiency in time-series data manipulation and interval reasoning using pandas, including grouping, datetime handling, and i...

Data Manipulation (SQL/Python)
8
0
59 people solved
Jan 17, 2026
Wayfair logo
Wayfair
Easy
Data Scientist Locked

Clean scores and return top 5 students

This question evaluates proficiency in data cleaning and transformation for Data Science, focusing on handling missing values, median imputation, and ...

Data Manipulation (SQL/Python)
4
0
69 people solved
Feb 18, 2026
OpenAI logo
OpenAI
Medium
Data Scientist

Write SQL to compute signup and retention lift

You are analyzing an A/B test for a marketing campaign that offers a free 1‑month trial. Assume all timestamps are in UTC. Tables experiment_assignmen...

Data Manipulation (SQL/Python)
15
0
132 people solved
Oct 8, 2025
OpenAI logo
OpenAI
Hard
Data Scientist Locked

Handle repeated churn in SQL

This question evaluates proficiency in time-based data manipulation and analytics, including handling repeated churn and resubscription, interval logi...

Data Manipulation (SQL/Python)
14
0
118 people solved
Jan 22, 2026
Amazon logo
Amazon
Medium
Data Scientist

Build DID panel and compute effects in SQL

Using the schema and toy data below, write SQL to construct a user-week panel and compute a clean pre/post DID dataset for first reminder exposure. Re...

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

Analyze advertiser spend by source

This question evaluates proficiency in data manipulation and analytics using SQL or Python, testing skills such as joins, time-based filtering, cohort...

Data Manipulation (SQL/Python)
5
0
44 people solved
Feb 9, 2026
DoorDash logo
DoorDash
Medium
Data Scientist

Measure Daily Late-Order Rates by Delivery Zone

The original interview report identified a late-order SQL exercise but did not preserve its exact schema. The following is a self-contained practice r...

Data Manipulation (SQL/Python)
18
0
125 people solved
May 7, 2026
Microsoft logo
Microsoft
Easy
Data ScientistSenior+ Locked

Query departments and top earners

This question evaluates proficiency in relational data manipulation, including multi-table joins, grouping and aggregation to identify departments wit...

Data Manipulation (SQL/Python)
20
0
198 people solved
Apr 1, 2026
Whatnot logo
Whatnot
Medium
Data ScientistSenior+

Calculate Monthly Customer Retention

Calculate Monthly Customer Retention Write one PostgreSQL SELECT statement or CTE query. Do not create, alter, or modify tables. Schema orders | colum...

Data Manipulation (SQL/Python)
0
0
3 people solved
Mar 30, 2026
Shopify logo
Shopify
Medium
Data Scientist

Justify and harden your analytics and BI stack

List your current analytics tech suite end-to-end (ingestion, storage/warehouse, transformation, orchestration, catalog/lineage, experimentation platf...

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

Compare list/dict; parse JSON/CSV at scale

Compare Python list and dict precisely: for append/insert/lookup/update/delete, state average and worst-case time complexity, memory implications, and...

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

Calculate valid daily usage with gap constraints

Write Standard SQL to compute, for a given date (use 2025-09-01), each user's total valid usage minutes. Schema and rules: Schema (timestamps are UTC)...

Data Manipulation (SQL/Python)
12
0
94 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