Which of the following sentence correctly a semicolon?
A James had a great time at the museum; but he left his hat there.
B For dinner we had pasta; fruit salad; homemade bread, butter, and jam; glasses of milk; and cookies, ice cream, and berries for dessert.
C yesterday I played soccer; football; rode a bike; and went swimming
D the story was open very late; so we were able to buy everything we needed.