Morgan Stanley Interview Question

List comprehensions, SQL joins and some random questions