compound key query working.. correctly