IBM interview question

Python and SQL advanced coding