Easy · 5 min
Identify VIP riders based on their lifetime spending and completed trip count. A VIP rider has accumulated at least $500 in total spend and completed at least 50 rides. Return rider_id, city_id, total_spend, completed_ride_count, and first_ride_date. This helps the business identify high-value customers.
Tables: riders, rides
Medium · 10 min
Analyze active driver performance with current month average ratings and rolling 30-day trends. Return driver_id, city_id, current_month_avg_rating (March 2026), rolling_30d_avg_rating, and total_completed_rides_current_month. Include only drivers with at least 5 completed rides in the current month. This helps identify top performers and potential problem drivers.
Tables: drivers, rides
Hard · 15 min
Analyze ride completion rates across cities and time-of-day buckets. Bucket requests into morning (6-9 AM), midday (9 AM-5 PM), evening (5-9 PM), and night (9 PM-6 AM). Return city_id, time_bucket, total_requests, completed_rides, completion_rate, and rnk (rank within each city by completion rate, descending). Include only buckets with at least 100 requests. This helps identify when and where the service struggles.
Tables: rides