Generate a compound sentence.
He was anxious about the results; he had worked hard.
He was anxious about the results, but he had worked hard and was confident in his preparation.
Complete the following task based on the instruction and optional input provided.### Instruction:
Generate a compound sentence.

### Input:
He was anxious about the results; he had worked hard.

### Output:
He was anxious about the results, but he had worked hard and was confident in his preparation.