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

Compute User Group Stories and Aggregate Story Engagement

user_story_engagement +---------+----------+------------+------------+-------+-------+ | user_id | story_id | story_type | created_at | views | likes ...

Data Manipulation (SQL/Python)
96
0
226 people solved
Jul 12, 2025
Coinbase logo
Coinbase
Medium
Data Scientist

Calculate Cumulative Sum for Each Integer in Table

numbers +-----+ | num | +-----+ | 1 | | 2 | | 13 | | 14 | | 15 | +-----+ Scenario You have a table containing one integer per row; for each row...

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

Identify Users Interested in Group Video Calls

video_calls caller | recipient | ds | call_id | duration u1 | u2 | 2023-09-01| c100 | 320 u3 | u4 | 2023-09-01| c101 ...

Data Manipulation (SQL/Python)
113
0
363 people solved
Jul 12, 2025
Instacart logo
Instacart
Medium
Data Scientist

Calculate Weekly Revenue and Order Count for Standard Deliveries

instacart_orders +----------+---------+---------+------------+---------+--------------+ | order_id | user_id | revenue | created_at | geo | delive...

Data Manipulation (SQL/Python)
53
0
5 people solved
Jul 12, 2025
Meta logo
Meta
Medium
Data Scientist

Calculate Total Interactions for Each Product

Interactions +----------+-----------+------------+--------------+ | buyer_id | seller_id | product_id | interactions | +----------+-----------+-------...

Data Manipulation (SQL/Python)
56
0
182 people solved
Jul 12, 2025
Roblox logo
Roblox
Medium
Data Scientist

Generate Friendship List with Acceptance Dates Using Pandas

friend_events | requester_id | accepter_id | request_date | accept_date | |--------------|-------------|--------------|-------------| | 1 |...

Data Manipulation (SQL/Python)
56
0
6 people solved
Jul 12, 2025
Roblox logo
Roblox
Medium
Data Scientist

Analyze Recent Orders Dataset with Python/pandas

orders | order_id | user_id | price | created_at | |----------|---------|-------|------------| | 1 | 101 | 20.5 | 2024-01-01 | | 2 ...

Data Manipulation (SQL/Python)
39
0
7 people solved
Jul 12, 2025
TikTok logo
TikTok
Medium
Data Scientist

Analyze and Clean European Ecommerce Sales Data

sales +----------+-------------+------------+---------+---------+----------------+ | order_id | customer_id | order_date | country | revenue | product...

Data Manipulation (SQL/Python)
51
0
95 people solved
Jul 12, 2025
Twitch logo
Twitch
Medium
Data Scientist

Analyze Streaming Data with SQL for Monthly Trends

minute_streamed +---------------------+------------------+------------+--------------------+ | time_minute | streamer_username| category | c...

Data Manipulation (SQL/Python)
100
0
260 people solved
Jul 12, 2025
DoorDash logo
DoorDash
Medium
Data Scientist

Find orders from bottom-quartile revenue restaurants

SQL Question You want to identify orders coming from restaurants whose total revenue is in the bottom 25th percentile. Assume the following tables: re...

Data Manipulation (SQL/Python)
5
0
99 people solved
Jul 7, 2025
TikTok logo
TikTok
Medium
Data Scientist

Tiktok DS Interview Questions

Scenario: You are provided with two tables: minute_streamed and minute_viewed. The minute_streamed table records each minute of streaming activity, wh...

Data Manipulation (SQL/Python)
11
1
83 people solved
Jun 26, 2025
Meta logo
Meta
Medium
Data Scientist

Compute ad impression conversion rates

You are given two tables for an ads product. Table: ad_impressions | Column | Type | Description | |---|---:|---| | impression_id | STRING | Unique id...

Data Manipulation (SQL/Python)
1
0
12 people solved
Apr 30, 2026
Shopify logo
Shopify
Medium
Data Scientist AI

Analyze Pirated Theme Usage Impact

An e-commerce platform lets shops install marketplace themes. Some themes are paid, and a shop should have a valid purchase/license before using a pai...

Data Manipulation (SQL/Python)
7
0
41 people solved
Apr 28, 2026
Molocoads logo
Molocoads
Medium
Data Scientist

Find top advertisers and cost per KPI

You are given three advertising campaign tables. Table: campaign_spend | Column | Type | Description | |---|---:|---| | date | DATE | Calendar date in...

Data Manipulation (SQL/Python)
0
0
6 people solved
Apr 23, 2026
Meta logo
Meta
Medium
Data Scientist

Count unconnected posts and reactions

You are analyzing a newly launched feed feature intended to improve engagement by showing more unconnected content. Assume the following tables: - pos...

Data Manipulation (SQL/Python)
21
2
200 people solved
Apr 5, 2026
Meta logo
Meta
Medium
Data Scientist Locked

Count heavy callers in 7 days

This question evaluates proficiency in SQL-based data manipulation and analytics, covering joins between user and call records, aggregation and distin...

Data Manipulation (SQL/Python)
7
0
66 people solved
Mar 24, 2026
Meta logo
Meta
Hard
Data Scientist

Write SQL for reply-based recipient metrics

You work on a social product and are given two tables. Assumptions (use these unless you state otherwise): - All timestamps are in UTC. - A “reply” is...

Data Manipulation (SQL/Python)
47
2
437 people solved
Mar 5, 2026
Meta logo
Meta
Hard
Data Scientist

Compute High-Call Usage Rates

You are given two tables for a voice-calling product: users - user_id BIGINT - country_code STRING calls - call_id BIGINT - caller_id BIGINT - recipie...

Data Manipulation (SQL/Python)
3
0
29 people solved
Mar 4, 2026
Meta logo
Meta
Medium
Data Scientist Locked

Write SQL for seller and vehicle metrics

This question evaluates proficiency in SQL data manipulation, including joins, distinct counts, grouping and aggregation, filtering by date and catego...

Data Manipulation (SQL/Python)
7
0
81 people solved
Mar 2, 2026
Capital One logo
Capital One
Easy
Data ScientistSenior+ Locked

Clean and Merge Housing Data

This question evaluates data cleaning, type coercion, robust merge operations, and missing-data imputation skills within tabular datasets, emphasizing...

Data Manipulation (SQL/Python)
2
0
47 people solved
Feb 28, 2026

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