Task: Question Answering
Input (English): Context: James Stewart ( Scottish Gaelic : Seumas Stiùbhart ) ( died 1466 ) was a prelate from 15th century Scotland . Stewart was a member of the Stewart kindred of Lorne . He was Dean of Moray from 1435 until May 19 , 1460 , when he was provided to the bishopric . He was consecrated as Bishop of Moray sometime towards the end of the year . He resigned the see two years later in the papal curia in favour of his brother , David Stewart . He died on August 5 , 1466 ., The Dean of Moray was the head of the cathedral chapter of the diocese of Moray, north-central Scotland, based at Elgin Cathedral. The diocese of Moray is first known to have had a dean from a document dating between 1207 and 1208, and its first dean known by name from a document dating between 1207 and 1211. The position remained in existence until the 17th century. , Great Britain, also known as Britain , is a large island in the north Atlantic Ocean off the northwest coast of continental Europe. With an area of , Great Britain is the largest European island and the ninth-largest in the world. In 2011 the island had a population of about 61 million people, making it the world's third-most populous island after Java in Indonesia and Honshu in Japan. The island of Ireland is situated to the west of it, and together these islands, along with over 1,000 smaller surrounding islands, comprise the British Isles archipelago., The Bishop of Moray or Bishop of Elgin was the ecclesiastical head of the Diocese of Moray in northern Scotland, one of Scotland's 13 medieval bishoprics. If the foundation charter of the monastery at Scone is reliable, then the Bishopric of Moray was in existence as early as the reign of King Alexander I of Scotland (11071124), but was certainly in existence by 1127, when one Gregoir ("Gregorius") is mentioned as "Bishop of Moray" in a charter of king David I of Scotland. The bishopric had its seat at Elgin and Elgin Cathedral, but was severally at Birnie, Kinneddar and as late as Bishop Andreas de Moravia at Spynie, where the bishops continued to maintain a palace. The Bishopric's links with Rome ceased to exist after the Scottish Reformation, but continued, saving temporary abolition between 1638 and 1661, under the episcopal Church of Scotland until the Revolution of 1688. Episcopacy in the established church in Scotland was permanently abolished in 1689. The Bishops fortified seat for over 500 years was at Spynie Palace., The Atlantic Ocean is the second largest of the world's oceans with a total area of about . It covers approximately 20 percent of the Earth's surface and about 29 percent of its water surface area. It separates the "Old World" from the "New World"., Elgin Cathedral is a historic ruin in Elgin, Moray, north-east Scotland. The cathedraldedicated to the Holy Trinitywas established in 1224 on land granted by King Alexander II outside the burgh of Elgin and close to the River Lossie. It replaced the cathedral at Spynie, to the north, that was served by a small chapter of eight clerics. The new and bigger cathedral was staffed with 18 canons in 1226 and then increased to 23 by 1242. After a damaging fire in 1270, a rebuilding programme greatly enlarged the building. It was unaffected by the Wars of Scottish Independence but again suffered extensive fire damage in 1390 following an attack by Robert III's brother Alexander Stewart, Earl of Buchan, also known as the Wolf of Badenoch. In 1402 the cathedral precinct again suffered an incendiary attack by the followers of the Lord of the Isles. The number of clerics required to staff the cathedral continued to grow, as did the number of craftsmen needed to maintain the buildings and surrounds. The number of canons had increased to 25 by the time of the Scottish Reformation in 1560, when the cathedral was abandoned and its services transferred to Elgin's parish church of St Giles. After the removal of the lead that waterproofed the roof in 1567, the cathedral steadily fell into decay. Its deterioration was arrested in the 19th century, by which time the building was in a substantially ruinous condition., The United Kingdom of Great Britain and Northern Ireland, commonly known as the United Kingdom (UK) or Britain, is a sovereign country in western Europe. Lying off the north-western coast of the European mainland, it includes the island of Great Britain (the name of which is also loosely applied to the whole country), the north-eastern part of the island of Ireland, and many smaller islands. Northern Ireland is the only part of the UK that shares a land border with another sovereign statethe Republic of Ireland. Apart from this land border, the UK is surrounded by the Atlantic Ocean, with the North Sea to its east, the English Channel to its south and the Celtic Sea to its south-south-west, giving it the 12th-longest coastline in the world. The Irish Sea lies between Great Britain and Ireland. With an area of , the UK is the 78th-largest sovereign state in the world and the 11th-largest in Europe. It is also the 21st-most populous country, with an estimated 65.1 million inhabitants. Together, this makes it the fourth most densely populated country in the European Union., The North Sea is a marginal sea of the Atlantic Ocean located between Great Britain, Scandinavia, Germany, the Netherlands, Belgium, and France. An epeiric (or "shelf") sea on the European continental shelf, it connects to the ocean through the English Channel in the south and the Norwegian Sea in the north. It is more than long and wide, with an area of around ., Scotland (Scots: ) is a country that is part of the United Kingdom and covers the northern third of the island of Great Britain. It shares a border with England to the south, and is otherwise surrounded by the Atlantic Ocean, with the North Sea to the east and the North Channel and Irish Sea to the south-west. In addition to the mainland, the country is made up of more than 790 islands, including the Northern Isles and the Hebrides., Subject: james stewart , Relation: place_of_burial, Options: (A) atlantic ocean (B) elgin cathedral
Output (English): elgin cathedral