CriticalRiver interview question

About python and SQL (not basic)