Open Destinations interview question

How to improve SQL query response