Since ties didn't matter I made a simple formula to track if i won or j won. I split the workflow into two streams to summarize i wins and j wins by country, unioned the streams together, then it was a simple sort and sample to achieve the desired output.