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
OpenAI logo
OpenAI
Hard
Data Scientist Locked

Compute churn with re-subscriptions

This question evaluates proficiency in event-time data manipulation, temporal aggregation, and subscription-state logic for computing conversion and r...

Data Manipulation (SQL/Python)
11
0
100 people solved
Jan 15, 2026
OpenAI logo
OpenAI
Medium
Data Scientist

Design Schema for Accurate Subscription State Tracking

subscription_events +----------+---------------------+-----------+-----------+ | user_id | event_ts | event_type| plan_type | +----------+...

Data Manipulation (SQL/Python)
137
0
415 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Data Scientist Locked

Write SQL for multi-account metrics

This question evaluates proficiency in SQL for multi-table aggregation, grouping, joins, and conditional counting within a user-account-notification s...

Data Manipulation (SQL/Python)
7
1
52 people solved
Mar 16, 2026
Cvs logo
Cvs
Easy
Data Scientist

Compute specialty spend share and top age band

You are given healthcare claims data split across member tables. Tables Assume the following schemas (types may be adapted to your SQL dialect): mem1 ...

Data Manipulation (SQL/Python)
10
1
89 people solved
Oct 17, 2025
Meta logo
Meta
Medium
Data Scientist Locked

Analyze spend and creation-source shifts

This question evaluates a data scientist's competency in SQL-based data manipulation, time-series aggregation, joins, and metric computation for analy...

Data Manipulation (SQL/Python)
7
0
58 people solved
Mar 1, 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
DoorDash logo
DoorDash
Medium
Data Scientist

Analyze DoorDash Orders: High-Frequency Customers, Top Spenders, MoM Sales & Bottom-Percentile Reach

orders +-------------+-------------+---------------+---------------------+ | delivery_id | customer_id | restaurant_id | order_place_time | +------...

Data Manipulation (SQL/Python)
79
0
130 people solved
Jul 12, 2025
Shopify logo
Shopify
Easy
Data Scientist Locked

Compute pirated-theme usage and revenue loss

This question evaluates SQL data manipulation and time-series analytics skills, focusing on interval overlap logic, aggregation of distinct entities, ...

Data Manipulation (SQL/Python)
6
0
46 people solved
Jan 17, 2026
LinkedIn logo
LinkedIn
Medium
Data Scientist

Count Article Types Viewed

Count Article Types Viewed You are given article view events and article metadata. Table 1: article_views — one row per article view event. | Column |...

Data Manipulation (SQL/Python)
9
0
79 people solved
Aug 3, 2025
Pinterest logo
Pinterest
Easy
Data Scientist

Write SQL for top categories and highly active users

You are given three tables: 1) impression Event-level table of user impressions. - impression_id BIGINT (PK) - user_id BIGINT (FK → user.user_id) - pi...

Data Manipulation (SQL/Python)
58
0
389 people solved
Dec 5, 2025
Wayfair logo
Wayfair
Easy
Data Scientist Locked

Find top buyer in earliest 10-year window

This question evaluates proficiency in data manipulation and analytical querying with SQL/Python, emphasizing date-based windowing, join operations, a...

Data Manipulation (SQL/Python)
3
0
23 people solved
Feb 18, 2026
Meta logo
Meta
Medium
Data Scientist

Compute seller counts and vehicle share

You are given two tables: 1. listing_interactions - buyer_id BIGINT - seller_id BIGINT - event_date DATE - product_id BIGINT - listing_...

Data Manipulation (SQL/Python)
6
0
51 people solved
Jan 5, 2026
Whatnot logo
Whatnot
Medium
Data ScientistSenior+

Compute a Seven-Day Rolling Average

Compute a Seven-Day Rolling Average Write one PostgreSQL SELECT statement or CTE query. Do not create, alter, or modify tables. Schema daily_metrics |...

Data Manipulation (SQL/Python)
0
0
2 people solved
Mar 30, 2026
OpenAI logo
OpenAI
Medium
Data ScientistSenior+

Write SQL for post-trial conversion cohorts

Using the schema below, write SQL to compute, for users first exposed between 2025‑06‑01 and 2025‑06‑30 (inclusive), the intent‑to‑treat paid conversi...

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

Explain handling very large datasets

Describe a project where you ingested and processed a dataset of at least 500 million rows or 1 TB end-to-end. Detail storage formats and partitioning...

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

Find common friends from directed edges

You have a directed edge list that records who followed whom. A mutual “friendship” exists only if both directions appear (A→B and B→A). Schema and sa...

Data Manipulation (SQL/Python)
11
0
80 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Analyze Thirty-Day Ad Performance with SQL

Analyze Thirty-Day Ad Performance with SQL For this practice version, use the following neutral schema. clicked is a Boolean recorded on each impressi...

Data Manipulation (SQL/Python)
1
0
23 people solved
May 22, 2026
Meta logo
Meta
Medium
Data Scientist

Compute Each Advertiser's Share of Shop Ad Spend

Compute Each Advertiser's Share of Shop Ad Spend You have the following daily advertising table: `text ads_detail( advertiser_id, ad_id, ad_type...

Data Manipulation (SQL/Python)
1
0
15 people solved
May 22, 2026
PayPal logo
PayPal
Easy
Data Scientist

Write SQL for top drivers and cancellation rates

Question You work on a rideshare / ride-hailing product that connects drivers and riders, with a focus on airport pickups. Using SQL, answer the quest...

Data Manipulation (SQL/Python)
9
0
126 people solved
Dec 7, 2025
WeRide logo
WeRide
Medium
Data Scientist

Compute window averages and merge intervals

Compute window averages and merge intervals You are given two independent pandas tasks. 1. Centered sliding-window average - Input DataFrame df with c...

Data Manipulation (SQL/Python)
11
0
87 people solved
Jan 23, 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