Question: Sir William Borthwick was master of the king's houshold for a king who passed away in which year ?

Context paragraphs:
Borthwick Castle: Borthwick Castle is one of the largest and best-preserved surviving medieval Scottish fortifications.  It is located twelve miles (19 km) south-east of Edinburgh, to the east of the village of Borthwick, on a site protected on three sides by a steep fall in the ground.  It was constructed in 1430 for Sir William Borthwick, from whom the castle takes its name,

William Borthwick, 4th Lord Borthwick: William Borthwick, 4th Lord Borthwick (died 1542) was a Scottish nobleman.

William Borthwick, 3rd Lord Borthwick: Sir William Borthwick, 3rd Lord Borthwick (died 20 May 1503) was a Scottish nobleman, ambassador, and Master of the King's Household in 1485.

James III of Scotland: James III (10 July 1451/May 1452 – 11 June 1488) was King of Scots from 1460 to 1488.  James was an unpopular and ineffective monarch owing to an unwillingness to administer justice fairly, a policy of pursuing alliance with the Kingdom of England, and a disastrous relationship with nearly all his extended family.  However, it was through his marriage to Margaret of Denmark that the Orkney and Shetland islands became Scottish.

Capers-Motte House: The Capers-Motte House is a pre-Revolutionary house at 69 Church Street in Charleston, South Carolina.  The house was likely built before 1745 by Richard Capers.  Later, the house was the home of Colonel Jacob Motte, who served as the treasurer of the colony for 27 years, before passing away in 1770.  His son, also named Jacob Motte, married Rebecca Brewton Motte, sister of Miles Brewton.  In 1778, Colonel James Parsons occupied the house; he was a member of the Continental Congress and had been offered the vice-presidency of South Carolina before the formation of the United States.  From 1800 to 1811, O'Brien Smith, a member of Congress, owned the house.  He passed away in 1779, leaving the house to his widow.  Later it was owned by his sister Honora Smith Pyne.  Mrs. William Mason Smith bought the house in 1869, and her granddaughter, American artist Miss Alice Ravenel Huger Smith lived in the house in the 20th century.  The house was restored to its Georgian and Adam period appearance, with later changes removed, when it was bought by Mr. and Mrs. Anthony Cecil in 1969.

William Jason Maxwell Borthwick: William Jason Maxwell Borthwick (1 November 1910 – 15 January 1998) was the son of Hon. William Borthwick and Ruth Margery Rigby.  He married Elizabeth Cleveland Elworthy, daughter of Herbert Elworthy, on 26 July 1937.  He died at the age of 87.

William Borthwick, 1st Lord Borthwick: Sir William Borthwick, 3rd of Borthwick and later 1st Lord Borthwick (born after 1411 – died c. 1458) was a Scottish peer and ambassador.

Open information extraction: In natural language processing, open information extraction (OIE) is the task of generating a structured, machine-readable representation of the information in text, usually in the form of triples or n-ary propositions.  A proposition can be understood as truth-bearer, a textual expression of a potential fact (e.g., "Dante wrote the Divine Comedy"), represented in an amenable structure for computers [e.g., ("Dante", "wrote", "Divine Comedy")].  An OIE extraction normally consists of a relation and a set of arguments.  For instance, ("Dante", "passed away in" "Ravenna") is a proposition formed by the relation "passed away in" and the arguments "Dante" and "Ravenna".  The first argument is usually referred as the subject while the second is considered to be the object.

Gilbert Kennedy, 2nd Earl of Cassilis: Gilbert Kennedy, 2nd Earl of Cassillis (died between 24 and 30 August 1527) was a Scottish nobleman, the son of David Kennedy, 1st Earl of Cassilis and Agnes, daughter of William Borthwick, 3rd Lord Borthwick.  He was married to Lady Isabel Campbell, daughter of Archibald Campbell, 2nd Earl Argyll and Elizabeth Stewart.

William Borthwick, 2nd Lord Borthwick: William Borthwick, 2nd Lord Borthwick (died between 6 October 1483 and 7 February 1483/4) was a Scottish ambassador to England.

Supporting paragraphs: William Borthwick, 3rd Lord Borthwick James III of Scotland
Answer: 1488