Analyze the given sentence and identify if it is a compound sentence

She had been studying the paper for more than two hours but had not completed the task.
user
Yes, this is a compound sentence as it contains two independent clauses linked by the conjunction 'but'.
assistant