He said that he had visited Spain the previous year.
Ответ: He said that he had visited Spain the previous year.