IBM interview question

One python and one sql Leetcode question