Solutions to "Learning SQL" exercises