Hertz Interview Question

Write a SQL query.