eBay interview question

read a prompt and write the corresponding SQL query