Back in post #12, the OP stated
Despite this, most of the responses appear to be dealing with eliminating the duplicate horses. That's not what the OP is asking for. He wants to exclude all races where there are duplicate records
In post #13, @gemma-the-husky wrote:
I agree with that approach