StoneX interview question

Mostly SQL queries and basic python functions question