ActionIQ interview question

2 SQL and 1 Python question