In which sentence does the subject agree with the verb?

A. A band of coyotes roam the forest next to the lake , occasionally coming to the shore for a drink.
B. The team of horses runs across the prairie, startling the sunbathing birds.
C. A herd of elephants move slowly across the savanna, the youngest weaving between legs of their mothers.
D. The flock of sheep scurry down the path, nudged on by the border collies running beside them .

B. The team of horses runs across the prairie, startling the sunbathing birds.

The sentence in which the subject agrees with the verb is:

D. The flock of sheep scurry down the path, nudged on by the border collies running beside them.