Which is a compound sentence?

 - Those carpenters use wood to build stairways and doorframes.
 - We asked Andrew to join us, but we couldn't persuade him to go.
The first sentence is the compound sentence. It is made up of two simple sentences joined by a comma and the conjunction but.
We asked Andrew to join us, but we couldn't persuade him to go.