Which is a compound sentence?

 - The queen was invited to the ball, so she bought a new dress.
 - Every month the mayor gives a speech to the citizens.
The second sentence is the compound sentence. It is made up of two simple sentences joined by a comma and the conjunction so.
The queen was invited to the ball, so she bought a new dress.