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
Bytedance logo
Bytedance
Medium
Data Scientist

Find Each User's Earliest Seven-Day Activity Streak

Find Each User's Earliest Seven-Day Activity Streak Write one PostgreSQL SELECT statement or CTE query. Do not create, alter, or modify tables. Schema...

Data Manipulation (SQL/Python)
3
0
11 people solved
Aug 3, 2026
DoorDash logo
DoorDash
Easy
Data ScientistSenior+

Measure Customers Ordering from Bottom-Quartile Restaurants

Measure Customers Ordering from Bottom-Quartile Restaurants Write one PostgreSQL SELECT statement or CTE query. Do not create, alter, or modify tables...

Data Manipulation (SQL/Python)
1
0
12 people solved
Jul 27, 2026
DoorDash logo
DoorDash
Easy
Data ScientistSenior+

Calculate the Monthly Share of High-Frequency Customers

Calculate the Monthly Share of High-Frequency Customers Write one PostgreSQL SELECT statement or CTE query. Do not create, alter, or modify tables. Sc...

Data Manipulation (SQL/Python)
2
0
9 people solved
Jul 27, 2026
Airbnb logo
Airbnb
Medium
Data Scientist

Describe How You Use SQL in Data Science Work

How do you use SQL in your day-to-day data-science work? Describe the kinds of problems you solve, the complexity of queries you can own, and the chec...

Data Manipulation (SQL/Python)
4
0
47 people solved
Jul 8, 2026
DoorDash logo
DoorDash
Easy
Data ScientistSenior+

Find Monthly Top Customers Excluding High-Frequency Users

Find Monthly Top Customers Excluding High-Frequency Users Write one PostgreSQL SELECT statement or CTE query. Do not create, alter, or modify tables. ...

Data Manipulation (SQL/Python)
0
0
8 people solved
Jul 27, 2026
Pinterest logo
Pinterest
Hard
Data Scientist

Implement and Evaluate Pin Similarity in Python

You are asked to compare Pin similarity in Python. Begin by clarifying how a Pin is represented and what “similar” should mean. Then assume the interv...

Data Manipulation (SQL/Python)
6
1
94 people solved
May 17, 2026
DoorDash logo
DoorDash
Easy
Data ScientistSenior+

Calculate Monthly Restaurant Sales Growth

Calculate Monthly Restaurant Sales Growth Write one PostgreSQL SELECT statement or CTE query. Do not create, alter, or modify tables. Schema delivery_...

Data Manipulation (SQL/Python)
0
0
5 people solved
Jul 27, 2026
Morgan Stanley logo
Morgan Stanley
Medium
Data Scientist

Describe Your Analysis and Visualization Toolkit

Give a recruiter-friendly overview of the data-analysis and visualization tools you use in your work. Explain what each tool helps you accomplish, how...

Data Manipulation (SQL/Python)
3
0
28 people solved
Jul 10, 2026
Voleon logo
Voleon
Easy
Data Scientist

Analyze a Regression Dataset and Build a Safe File-Processing Utility

Analyze a Regression Dataset and Build a Safe File-Processing Utility You receive a feature matrix X and a continuous target y. After the analysis, im...

Data Manipulation (SQL/Python)
1
0
24 people solved
Jun 1, 2026
Waymo logo
Waymo
Medium
Data Scientist

Analyze User Ride Activity with SQL

Use the following tables to answer four SQL analysis tasks. `text rides(ride_id, ride_date, ride_rating, user_id) users(user_id, city) ` Constraints &...

Data Manipulation (SQL/Python)
6
0
76 people solved
Mar 14, 2026
Meta logo
Meta
Medium
Data Scientist

Compare Survey Satisfaction for New and Established Users

The interview report preserved the survey tables and the request to compare response levels for new and old users, but it explicitly noted that the in...

Data Manipulation (SQL/Python)
4
0
70 people solved
Jul 6, 2026
Waymo logo
Waymo
Medium
Data Scientist

Implement a Safe Average Function in Python

Write a Python function average(table) that returns the arithmetic mean of a list of numbers and returns 0 when the list is empty. Explain the functio...

Data Manipulation (SQL/Python)
6
0
49 people solved
Mar 14, 2026
Meta logo
Meta
Medium
Data Scientist

Calculate Daily Survey Response Rates by Country

The interview report preserved the survey tables and the request to calculate response rate, but not the exact grouping or output contract. The follow...

Data Manipulation (SQL/Python)
30
4
353 people solved
Jul 6, 2026
Meta logo
Meta
Medium
Data Scientist Locked

Calculate CTR and ad revenue

This question evaluates proficiency in data manipulation and analytics, specifically metric calculation (CTR) and multi-currency revenue aggregation, ...

Data Manipulation (SQL/Python)
7
1
77 people solved
Jan 25, 2026
Google logo
Google
Hard
Data Scientist Locked

Compute Company Suggestion Funnels

This question evaluates a candidate's ability to perform event-level funnel analysis including distinct aggregation, joins to a dimension table, time-...

Data Manipulation (SQL/Python)
3
0
20 people solved
May 18, 2026
LinkedIn logo
LinkedIn
Easy
Data Scientist

Analyze member video posting behavior by country

Question You are given two tables describing LinkedIn members and the videos they upload. Write SQL (and optionally Python where noted) to answer the ...

Data Manipulation (SQL/Python)
7
1
111 people solved
Feb 1, 2026
Boston Consulting Group logo
Boston Consulting Group
Medium
Data Scientist

Transform and aggregate messy event data

Using pandas (vectorized; no loops), clean, combine, and aggregate the following to produce country/plan day-level metrics for 2025-08-31. DataFrames ...

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

Monthly Cohort Retention

This question evaluates practical SQL skills in user retention analysis, specifically the ability to build a monthly cohort retention table from raw a...

Data Manipulation (SQL/Python)
3
0
31 people solved
Jun 8, 2026
OpenAI logo
OpenAI
Medium
Data ScientistSenior+

Debug and harden trial-assignment Python code

You are given the following simplified Python snippet used to assign users and trigger a 1‑month free trial: """ import random, datetime, requests def...

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

Write SQL window functions for D7 retention

Assume you have the following tables (timestamps are in UTC). 1) game_sessions - user_id (STRING) - session_start_ts (TIMESTAMP) - country (STRING) Ea...

Data Manipulation (SQL/Python)
11
1
156 people solved
Nov 4, 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