This is a rich country There are lots of poor people. (compound sentence)
This is a rich country, but there are lots of poor people.
This is a rich country There are lots of poor people. (compound sentence)
This is a rich country, but there are lots of poor people.