During the Namek Saga of Dragon Ball Z, the first wish to Porunga was to bring Piccolo back, next was teleport him to Namek but before the third wish could be granted Guru died making the Namekian Dragonballs useless.
After Freeza sets Namek to explode the Dragonballs bad been collected on earth (now that Kami was back) and the wish made to Shenron was to "Bring back everyone who had been killed by Freeza". after this the Namekian Dragonballs come back and Dende uses the final wish to teleport everyone except Freeza and Goku to earth.
what i don't get is how Guru was resurrected when the wish to Shenron was to bring everyone Freeza had killed back to life, why was Guru brought back to life even though he wasn't killed by Freeza?