sql puzzle portfolio succession example