Slalom Build interview question

Python + Sql, basic behavior questions