Which is a compound sentence?

 - Whales live in the water, but they breathe air.
 - The skier flew down the mountain at top speed.
The first sentence is the compound sentence. It is made up of two simple sentences joined by a comma and the conjunction but.
Whales live in the water, but they breathe air.