Task: Explanation
Input (English): James Roberton, Lord Bedlay (c. 1590 – May 1664) was a Scottish advocate and judge. He was born to Archibald Roberton of Stainhall, youngest son of John Roberton 9th Laird of Earnock, and Elizabeth Baillie, daughter of Robert Baillie of Jerviston. He inherited Bedlay Castle from his father, who bought it from James, the 8th Lord Boyd. He became Lord Bedlay upon the occasion of being raised to the judicial bench in 1661. Question: What city is nearest to the castle inherited by James Roberton? Answer: Glasgow
Output (English):  He inherited Bedlay Castle from his father, who bought it from James, the 8th Lord Boyd.