Merge results by key