Background: Bowring was born in Exeter of Charles Bowring (1769-1856), a wool merchant whose main market was China, from an old Unitarian family, and Sarah Jane Anne (d. 1828), the daughter of Thomas Lane, vicar of St Ives, Cornwall. His last formal education was at a Unitarian school in Moretonhampstead and he started work in his father's business at age 13. Bowring at one stage wished to become a Unitarian minister. Espousal of Unitarian faith was illegal in Britain until Bowring had turned 21.
Context: Bowring had begun contributing to the newly founded Westminster Review and had been appointed its editor by Bentham in 1825. By his contributions to the Review he attained considerable repute as a political economist and parliamentary reformer. He advocated in its pages the cause of free trade long before it was popularized by Richard Cobden and John Bright, co-founders of the Anti-Corn Law League in Manchester in 1838. He pleaded earnestly on behalf of parliamentary reform, Catholic emancipation, and popular education. Bentham failed in an attempt to have Bowring appointed professor of English or History at University College London in 1827 but, after Bowring visited the Netherlands in 1828, the University of Groningen conferred on him the degree of doctor of laws in February the next year for his Sketches of the Language and Literature of Holland. In 1830, he was in Denmark, preparing for the publication of a collection of Scandinavian poetry. As a member of the 1831 Royal Commission, he advocated strict parliamentary control on public expenditure, and considered the ensuing reform one of his main achievements. Till 1832, he was Foreign Secretary of the British and Foreign Unitarian Association. Bowring was appointed Jeremy Bentham's literary executor a week before the latter's 1832 death in his arms, and was charged with the task of preparing a collected edition of his works. The appointment was challenged by a nephew but Bowring prevailed in court. The work appeared in eleven volumes in 1843, notably omitting Bentham's most controversial works on female sexuality and homosexuality. Free trade took on the dimensions of faith to Bowring who, in 1841, quipped, "Jesus Christ is free trade and free trade is Jesus Christ", adding, in response to consternation at the proposition, that it was "intimitely associated with religious truth and the exercise of religious principles."
Question: How long was he in office?
Answer: Till 1832, he was Foreign Secretary of the British and Foreign Unitarian Association.

Background: William II (Old Norman: Williame; c. 1056 - 2 August 1100), the third son of William the Conqueror, was King of England from 1087 until 1100, with powers over Normandy, and influence in Scotland. He was less successful in extending control into Wales. William is commonly known as William Rufus (Rufus being Latin for 'the Red'), perhaps because of his red-faced appearance or, more likely, due to having red hair as a child that grew out in later life.
Context: William Rufus inherited the Anglo-Norman settlement detailed in the Domesday Book, a survey undertaken at his father's command, essentially for the purposes of taxation, which was an example of the control of the English monarchy. If he was less effective than his father in containing the Norman lords' propensity for rebellion and violence, through charisma, or political skills, he was forceful in overcoming the consequences. In 1095, Robert de Mowbray, the earl of Northumbria, refused to attend the Curia Regis, the thrice-annual court where the King announced his governmental decisions to the great lords. William led an army against Robert and defeated him. Robert was dispossessed and imprisoned, and another noble, William of Eu, accused of treachery, was blinded and castrated. In external affairs, William had some successes. In 1091 he repulsed an invasion by King Malcolm III of Scotland, forcing Malcolm to pay homage. In 1092 he built Carlisle Castle, taking control of Cumberland and Westmorland, which had previously been claimed by the Scots. Subsequently, the two kings quarrelled over Malcolm's possessions in England, and Malcolm again invaded, ravaging Northumbria. At the Battle of Alnwick, on 13 November 1093, Malcolm was ambushed by Norman forces led by Robert de Mowbray. Malcolm and his son Edward were killed and Malcolm III's brother Donald seized the throne. William supported Malcolm's son Duncan II, who held power for a short time, and then another of Malcolm's sons, Edgar. Edgar conquered Lothian in 1094 and eventually removed Donald in 1097 with William's aid in a campaign led by Edgar AEtheling. Edgar recognised William's authority over Lothian and attended William's court. William made two forays into Wales in 1097. Nothing decisive was achieved, but a series of castles was constructed as a marchland defensive barrier. In 1096, William's brother Robert Curthose joined the First Crusade. He needed money to fund this venture and pledged his Duchy of Normandy to William in return for a payment of 10,000 marks--a sum equalling about a quarter of William's annual revenue. In a display of the effectiveness of English taxation, William raised the money by levying a special, heavy, and much-resented tax upon the whole of England. William then ruled Normandy as regent in Robert's absence. Robert did not return until September 1100, one month after William's death. As regent for his brother Robert in Normandy, William campaigned in France from 1097 to 1099. He secured northern Maine but failed to seize the French-controlled part of the Vexin region. According to William of Malmesbury he was planning to invade Aquitaine at the time of his death.
Question: what war was william involved in?
Answer:
In 1091 he repulsed an invasion by King Malcolm III of Scotland, forcing Malcolm to pay homage.