which of the following is a complex sentence

Aof started to make pasta, but I changed my mind and made rice instead.
BI enjoy reading because it's a solitary pleasure.
CThe dog was lonely; it barked all night.
DDriving to work is more dangerous than walking.