REVOLVE interview question

Perform specific SQL querying on tables