RBC interview question

Mostly syntax related questions for databases and python