BNY interview question

I was asked about SQL queries.