How does the sentence end?

William was able to stay up later than Kevin was because
William had drank their coffee.