Sapiens interview question

There given the sql query