IBM interview question

just some simple SQL querying and Python string manipulation