Suppose my data looks like this with columns named food, action, and population:
pizzas eatenBy humans
pizzas eatenBy collegeKids
pizzas eatenBy everyOne
pizzas grownBy farmers
sprouts grownBy sproutFarmers
sprouts grownBy humans
How can I write a Pig Latin script to produce ONLY a unique food & action, with any valid population from the distinct food & action group?
ie, the only output I'd like from the above data would be this (though the population of the 1st and 3rd lines could be different):
pizzas eatenBy everyOne
pizzas grownBy farmers
sprouts grownBy sproutFarmers
Thank you,