Raylo interview question

I failed at the technical challenge, about SQL