Uber interview question

SQL queries, Case studies and puzzles.