IBM Interview Question

just some simple SQL querying and Python string manipulation