Which clause is subordinate?

A.
There were baby goats running all over the yard!

B.
After an hour, all except one had been captured.

C.
Someone had not shut the gate completely.

D.
When we looked out the living room window.