Messing around with one possible way of grouping row pairs in IQL.