There were all so tired that they could A do nothing but sleep B do nothing but to sleep

问题描述:

There were all so tired that they could A do nothing but sleep B do nothing but to sleep
为什么选A而不选B呢?

这是一个句式
but后面接动词原形