Moon Active interview question

ask for an sql question