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

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...

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

Compute churn and revenue churn in SQL

You receive monthly end-of-month subscription snapshots and must compute August-2025 churn metrics. Schema and sample data: Table: subscription_monthl...

Data Manipulation (SQL/Python)
0
0
7 people solved
Oct 13, 2025
Flatiron Health logo
Flatiron Health
Medium
Data Scientist

Compute churn metrics and rank top students

You have two tasks. Part A (R): You receive a Customers CSV with columns: id (INT), signup_date (YYYY-MM-DD), last_active_date (YYYY-MM-DD), churned (...

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

Compute browsing metrics in Python from logs

Given event logs, write idiomatic Pandas to compute segment-level metrics and a funnel. Data schema: events(event_id, ts_utc, guest_id, device in {des...

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

Process real-time enter/exit events and actives

You receive a real-time stream of events with schema: user_id (str), channel (str), event_type ("enter"|"exit"), ts (UTC ISO timestamp). A user can ‘e...

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

Compute view prevalence from views and labels

Given the tables below, write SQL to compute view prevalence of violating content. Use “today” = 2025-09-01 and report the last 7 days (2025-08-26 to ...

Data Manipulation (SQL/Python)
8
0
58 people solved
Oct 13, 2025
Uber logo
Uber
Easy
Data ScientistSenior+

Transform DataFrame and compute diff-in-diff

You are given a pandas DataFrame df with the following columns: - unit_id (string): entity identifier (e.g., user, city, driver) - group (string): eit...

Data Manipulation (SQL/Python)
18
3
247 people solved
Dec 11, 2025
Meta logo
Meta
Medium
Data Scientist Locked

Count Recent High-Volume Call Users

This question evaluates SQL data manipulation and analytical querying skills, including time-window filtering, joins between user and call tables, rol...

Data Manipulation (SQL/Python)
24
1
156 people solved
Mar 14, 2026
Notion logo
Notion
Medium
Data Scientist Locked

Analyze Document Collaboration CSVs

Analyze Document Collaboration CSVs evaluates SQL or pandas logic, joins, grouping, window functions, null handling, edge cases, and validation in a r...

Data Manipulation (SQL/Python)
8
0
67 people solved
Jul 1, 2025
Waymo logo
Waymo
Medium
Data Scientist

Compute Ride Metrics in SQL

You are given two tables for a ride-hailing product. Tables: - users: one row per registered user. - user_id BIGINT PRIMARY KEY - city VARCHAR NOT...

Data Manipulation (SQL/Python)
2
0
13 people solved
Mar 7, 2026
Databricks logo
Databricks
Hard
Data ScientistSenior+ Locked

Find Top-5 Similar Rows

This question evaluates pairwise similarity matching, numerical feature comparison using mean squared error, null-value exclusion, and deterministic t...

Data Manipulation (SQL/Python)
9
0
67 people solved
Mar 5, 2026
Airwallex logo
Airwallex
Medium
Data Scientist

Compute Moderation View Metrics

Question You are working on a content moderation analytics problem. You have two tables. Table 1: content_views (one row per user / post / day) - user...

Data Manipulation (SQL/Python)
15
0
126 people solved
Nov 14, 2025
Glean logo
Glean
Easy
Data Scientist

Compute DAU and rolling MAU with zero days

You have two tables in PostgreSQL: Tables users - user_id (STRING / INT, PK) - signup_date (DATE) logins - user_id (STRING / INT, FK → users.user_id) ...

Data Manipulation (SQL/Python)
5
0
62 people solved
Nov 10, 2025
PayPal logo
PayPal
Medium
Data Scientist

Identify Session with Maximum Overlapping Sessions Count

sessions | session_id | start_time | end_time | | 1 | 2023-01-01 09:00:00 | 2023-01-01 10:00:00 | | 2 | 2023-0...

Data Manipulation (SQL/Python)
85
0
492 people solved
Aug 4, 2025
Google logo
Google
Medium
Data Scientist

Calculate User Deviation from Team Average Messages

usage_stats +---------+---------+---------------+------------+ | user_id | team_id | messages_sent | date | +---------+---------+---------------...

Data Manipulation (SQL/Python)
100
0
284 people solved
Aug 4, 2025
Atlassian logo
Atlassian
Medium
Data Scientist

Identify Top-3 Users by Recent Total Spend

Users +----+-------+-------------+ | id | name | joined_date | +----+-------+-------------+ | 1 | Alice | 2023-01-02 | | 2 | Bob | 2023-02-14 |...

Data Manipulation (SQL/Python)
102
0
175 people solved
Aug 4, 2025
Meta logo
Meta
Easy
Data Scientist Locked

Convert multi-currency revenue to USD totals

This question evaluates a candidate's competency in converting multi-currency revenue into USD totals by aligning event dates with FX rates, handling ...

Data Manipulation (SQL/Python)
4
0
47 people solved
Feb 16, 2026
Citadel logo
Citadel
Medium
Data Scientist

Implement Left Join Using Python Dictionaries Efficiently

Orders +---------+----------+--------+ | order_id| customer | amount | +---------+----------+--------+ | 101 | C1 | 250 | | 102 | ...

Data Manipulation (SQL/Python)
88
0
307 people solved
Jul 12, 2025
Block (Square) logo
Block (Square)
Medium
Data Scientist

Write left-join queries with tricky filters

Assume 'today' = '2025-09-01'. Do NOT use window functions (e.g., RANK). Use LEFT JOIN, COUNT(DISTINCT), GROUP BY, HAVING as appropriate. Schema: - us...

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

Detect sessions and gaps using SQL LEAD

Write a single ANSI-SQL query that (a) assigns per-user session_ids when the gap between consecutive events exceeds 30 minutes, (b) computes session_s...

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