Atlas Systems interview question

Simple SQL query