David had eaten by the time we got home.
Перевод: Дэвид поел к тому времени, как мы добрались до дома.
Ответ: had eaten