Google Data Scientist Data Manipulation (SQL/Python) Interview Questions

Practice 16 real Data Manipulation (SQL/Python) interview questions for Data Scientist roles at Google.

16 Questions 1 Company05.18.2026
Showing 16 results
Role
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
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
Google logo
Google
Medium
Data Scientist

Find most co‑purchased product pairs in SQL

Given the schema and sample data below, write ANSI-SQL to return the top 5 unordered product pairs most frequently purchased together across distinct ...

Data Manipulation (SQL/Python)
19
1
133 people solved
Oct 13, 2025
Google logo
Google
Medium
Data Scientist

Design a scalable video platform database

Design the relational database for a YouTube-like video company. Deliverables: 1) list the core tables with key columns, types, and constraints (users...

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

Compute violation rate and flag precision in SQL

You are analyzing a Trust & Safety product in BigQuery. Assume 'today' is 2025-09-01 (UTC). Define precise metrics and write SQL to compute them, bein...

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

Design Scalable Database and Analyze E-commerce Data

transactions +-----------+----------+------------+------------+ | user_id | order_id | product_id | order_time | +-----------+----------+-----------...

Data Manipulation (SQL/Python)
68
0
253 people solved
Jul 12, 2025
Google logo
Google
Medium
Data Scientist

Generate binomial matrix and column-normalize

Using Python with NumPy, generate a 100×100 matrix of Binomial(n = 10, p = 0.3) draws with a fixed random seed, then normalize each column so it sums ...

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

Analyze video flags and reviews with SQL

You are designing SQL queries for YouTube Trust & Safety. Use the schema and sample data below. Unless stated otherwise, treat a flag as reviewed if t...

Data Manipulation (SQL/Python)
28
2
244 people solved
Oct 13, 2025
Google logo
Google
Medium
Data Scientist

Write SQL/Python for messy event data

Using the schema and sample data below, write: (1) a single SQL query to compute daily metrics for the local date 2025-09-01 in America/Los_Angeles, a...

Data Manipulation (SQL/Python)
3
0
27 people solved
Oct 13, 2025
Google logo
Google
Medium
Data Scientist

Add a conditional column in Python

Using pandas, add a derived column to a table based on multiple conditions with strict precedence and missing-value handling. Given the sample DataFra...

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

Compute monthly CRR with merges and gaps

You are given PostgreSQL tables user_profile(user_id, signup_ts, country, is_employee, is_test), user_events(user_id, event_ts, event_type, revenue, p...

Data Manipulation (SQL/Python)
10
0
131 people solved
Oct 13, 2025
Google logo
Google
Medium
Data Scientist

Deduplicate events and rank products with SQL

You are given two tables. Schema: - events(event_id INT PRIMARY KEY, user_id INT, product_id INT, event_time TIMESTAMP, idempotency_key TEXT, amount_c...

Data Manipulation (SQL/Python)
1
0
10 people solved
Oct 13, 2025
Google logo
Google
Medium
Data Scientist

Implement R dplyr simulation and left join

Using R and dplyr, run a simulation and a join. Data: prices item_id | price_usd 1 | 10.00 2 | 20.00 3 | 30.00 4 | 40.00 catalog item_id | category 1 ...

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

Calculate Top Countries' Gmail Usage and MoM Change

emails +----+---------+-----------+-----------+------------+ | id | user_id | country | provider | send_date | +----+---------+-----------+-------...

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

Sample and Simulate Price Adjustments in R with dplyr

Products +----+-----------+-------+ | id | product | price | | 1 | phone | 500 | | 2 | tablet | 300 | | 3 | laptop | 1000 | | 4 |...

Data Manipulation (SQL/Python)
74
0
171 people solved
Jul 12, 2025
Google logo
Google
Medium
Data Scientist

Analyze User Flags and Review Outcomes for Moderation Prioritization

UserFlags +---------------+--------------+----------+---------+ | User_FirstName| User_LastName| Video_ID | Flag_ID | +---------------+--------------+...

Data Manipulation (SQL/Python)
100
0
343 people solved
Jul 12, 2025

Explore more Google Data Scientist interview questions

Real questions from candidate reports, grouped by topic.

Other Google Data Scientist categories
Browse all