EY interview question

It was mainly about SQL