Which of the following is an example of a compound sentence?

A. Without warning, the monster jumped up.
B. Some people use social media every day.
C. I want to sleep, but he wants to go outside.
D. Because he was hungry, he went to the store.