I am not sure whether we can use two different instances of had in the following sentence:
When we had entered the ground, the circus had already begun.
According to my understanding, it should be:
When we entered the ground, the circus had already begun.
So kindly clear up my doubt.