sql problems: part 1- solutions