Givelify interview question

How would you sleep up a SQL query?