Exercise 3 Advanced SQL