Is the sentence compound?
  
The dentist told Greg to brush his teeth every day, but he didn’t listen.