EY Interview Question

It was mainly about SQL