Uber interview question

Perform a number of SQL queries.