单项选择题

The work ______ by the time you got there.
A) had been finished C) will be finished
B) has been finished D) was finished