A typical compound sentence has two or more clauses linked by coordination with each one having its own subject and predicate. Usually, there is a coordinating conjunction like and, but or or joining the clauses:
Tom likes beerandEd likes whiskybutFred prefers brandy.
I like this hatbutI don't like that one.
Do you like this car the best, ordo you prefer the other one.