Which is a compound sentence?

 - The tailor measures the length of the pant leg.
 - Desmond liked the sea otters, but the jellyfish were his favorite.
The second sentence is the compound sentence. It is made up of two simple sentences joined by a comma and the conjunction but.
Desmond liked the sea otters, but the jellyfish were his favorite.