Skip to content
Pro90 ProblemsSQL + Python

Ride-Hailing SQL & Python Interview Questions

Mobility platforms process millions of trips daily, requiring analysis of surge pricing, driver utilization, and geographic demand patterns. These SQL and Python challenges are modeled after work at Uber, Lyft, DiDi, Grab, Ola, Waymo, Bolt, Lime, Via, Cabify, and more. Build skills in trip matching efficiency, driver earnings optimization, surge pricing models, geographic demand forecasting, and safety analytics.

Ride-Hailing

90 total problems

SQL45
Python45
Top Companies Hiring in Ride-Hailing

Questions are relevant for real analytics problems data science teams solve at these companies.

Uber
Uber
Lyft
Lyft
DiDi
DiDi
Grab
Grab
Ola
Ola
Waymo
Waymo
Cruise
Cruise
Lime
Lime
Bird
Bird
Via
Via
Bolt
Bolt
Cabify
Cabify
InDrive
InDrive
Motional
Motional
Zoox
Zoox
Mobileye
Mobileye
Aurora
Aurora
Rivian
Rivian
Waze
Waze
Transdev
Transdev

Difficulty Distribution

Easy

15

17% of problems

Medium

32

36% of problems

Hard

39

43% of problems

Expert

4

4% of problems

What You'll Practice

Trip performance analysis
Driver utilization metrics
Surge pricing analysis
Geographic demand patterns
Cohort retention
Earnings optimization
Match rate analysis
Supply-demand balance

Topics Covered

21 topics
SQL· 9
aggregationbasic queries filteringcleaning transformdate timejoinsscenario sqlset operationssubqueries cteswindow functions
Python· 12
eda statisticsfeature engineeringpandas aggregationpandas applypandas basicspandas cleaningpandas datetimepandas filteringpandas mergingpandas reshapingpandas scenariopandas window

All Problems90 total

Open in editor
01
Active High-Rated DriversPro
SQLEasy
02
Economy Long-Distance TripsPro
SQLEasy
03
Sedan Vehicles With Valid InspectionPro
SQLEasy
04
Premium Trips With Surge PricingPro
SQLEasy
05
Experienced Drivers With Phone NumberPro
SQLMedium
06
Trips With Rider DetailsPro
SQLEasy
07
Trips With Vehicle InfoPro
SQLMedium
08
Trip Revenue With Driver DetailsPro
SQLMedium
09
Rider Ratings With Trip ContextPro
SQLMedium
10
Drivers Without Completed ShiftsPro
SQLMedium
11
Completed Trips With Full ContextPro
SQLHard
12
Trip Volume by Service LevelPro
SQLEasy
13
Total Revenue by CityPro
SQLMedium
14
Average Fare by Vehicle TypePro
SQLMedium
15
Cancellation Rate by CityPro
SQLMedium
16
Top 5 Riders by Total SpendingPro
SQLHard
17
Drivers With High Cancellation RatePro
SQLHard
18
Rank Drivers by Trip CountPro
SQLMedium
19
Rider Trip Sequence NumberPro
SQLMedium
20
Daily Platform Revenue Running TotalPro
SQLHard
21
Highest Fare Trip per DriverPro
SQLHard
22
Driver Earnings 3-Trip Moving AveragePro
SQLHard
23
Fare Change From Previous TripPro
SQLHard
24
Trip Distance Quartile AnalysisPro
SQLHard
25
Drivers Above Average RatingPro
SQLMedium
26
Riders Who Used Economy and PremiumPro
SQLHard
27
Latest Trip per RiderPro
SQLHard
28
City Revenue With RankPro
SQLHard
29
Service Levels With Above-Average FarePro
SQLHard
30
October 2024 TripsPro
SQLEasy
31
Monthly Trip Volume TrendPro
SQLMedium
32
Average Trip Duration by Hour of DayPro
SQLMedium
33
Driver Wait Time by CityPro
SQLHard
34
Trips With Distance CategoryPro
SQLEasy
35
Payments With Fare Tier LabelPro
SQLMedium
36
Driver Activity Summary With Status LabelPro
SQLHard
37
Cities With Riders or DriversPro
SQLMedium
38
Drivers Registered Without TripsPro
SQLMedium
39
Driver Performance ScorecardPro
SQLHard
40
Rider Behavior AnalysisPro
SQLHard
41
City Operations DashboardPro
SQLHard
42
Surge Pricing Impact AnalysisPro
SQLHard
43
Cancellation Root Cause AnalysisPro
SQLHard
44
Payment Method Performance DashboardPro
SQLHard
45
Service Level Comparison ReportPro
SQLHard
46
Active Driver ProfilesPro
PYTHONEasy
47
Trip Status CountsPro
PYTHONEasy
48
Vehicle Type SummaryPro
PYTHONMedium
49
Rider Payment Preference SummaryPro
PYTHONMedium
50
Completed Economy TripsPro
PYTHONEasy
51
Long-Distance Premium TripsPro
PYTHONMedium
52
High-Rated Unbanned RidersPro
PYTHONMedium
53
Surge Trips With High FarePro
PYTHONHard
54
Trips Per Service LevelPro
PYTHONEasy
55
Total Revenue by Payment MethodPro
PYTHONMedium
56
Average Driver Rating by CityPro
PYTHONMedium
57
Trip Stats by City and Service LevelPro
PYTHONHard
58
Driver Earnings SummaryPro
PYTHONHard
59
Trips With Rider NamesPro
PYTHONEasy
60
Trip Payments With Driver InfoPro
PYTHONMedium
61
Drivers Without TripsPro
PYTHONMedium
62
Completed Trips With Vehicle and RatingPro
PYTHONHard
63
Full Trip Detail With All ContextPro
PYTHONHard
64
Rank Drivers by Trip CountPro
PYTHONMedium
65
Running Total Earnings Per DriverPro
PYTHONMedium
66
7-Day Moving Average FarePro
PYTHONHard
67
Daily Trip Count Change vs Previous DayPro
PYTHONHard
68
Trip Request Hour and Day of WeekPro
PYTHONEasy
69
Trip Duration From TimestampsPro
PYTHONMedium
70
Monthly Trip Volume by Service LevelPro
PYTHONHard
71
Fill Missing Rider Phone NumbersPro
PYTHONEasy
72
Normalize Fare Components to PercentagePro
PYTHONMedium
73
Standardize Payment MethodsPro
PYTHONHard
74
Pivot Trip Counts by City and Service LevelPro
PYTHONMedium
75
Revenue Pivot by Payment Method and StatusPro
PYTHONHard
76
Classify Trips by Distance TierPro
PYTHONMedium
77
Trip Value ScorePro
PYTHONHard
78
Fare Per Km and Per MinutePro
PYTHONMedium
79
Driver Earnings Quartile BucketingPro
PYTHONHard
80
Time-Based Trip FeaturesPro
PYTHONHard
81
Driver Feature MatrixPro
PYTHONExpert
82
Trip Pricing Feature EngineeringPro
PYTHONHard
83
Fare Descriptive Statistics by Service LevelPro
PYTHONMedium
84
Distance vs Fare Correlation by Service LevelPro
PYTHONHard
85
Anomalous Fare Detection (IQR)Pro
PYTHONHard
86
Driver Performance ScorecardPro
PYTHONHard
87
Rider Lifetime Value ReportPro
PYTHONHard
88
City Supply-Demand DashboardPro
PYTHONExpert
89
Surge Pricing Impact AnalysisPro
PYTHONExpert
90
Complete Trip Lifecycle ReportPro
PYTHONExpert

Ready to practice Ride-Hailing?

90 SQL and Python challenges built from real ride-hailing data. Graded instantly in your browser — no setup required.