Which of the following is a compound sentence?

A. To get to the zoo, we took a train and a cab.
B. We saw pandas during our visit at the zoo.
C. It was a beautiful day,so we decided to go to the zoo.
D. Before we left, I bought a hat at the gift shop.

A. To get to the zoo, we took a train and a cab.