Epsilon interview question

Focus more on SQL queries