Ensure selected tuples are distinct, and the iteration over the returned tuples.