Question: William Pery served as Captain of the Yeomen of the Guard under the lord who served in what position from 1865 to 1868?

Context:
Yeomen of the Guard
The Queen's Body Guard of the Yeomen of the Guard are a bodyguard of the British Monarch.
 The oldest British military corps still in existence, it was created by King Henry VII in 1485 at the Battle of Bosworth.
 As a token of this venerability, the Yeomen still wear red and gold uniforms of Tudor style.
 There are 60 Yeomen of the Guard (plus six officers), drawn from retired members of the British Army, Royal Marines and Royal Air Force, but traditionally not the Royal Navy.
 This ban on Royal Navy Personnel was lifted in 2011 and two sailors joined the ranks of the Yeomen of the Guard.
 However, the role of the Captain of the Queen's Body Guard of the Yeomen of the Guard is a political appointment — the captain is always the government Deputy Chief Whip in the House of Lords.
George Percy, 5th Duke of Northumberland
George Percy, 5th Duke of Northumberland PC (22 June 1778 – 22 August 1867), styled Lord Lovaine between 1790 and 1830 and known as The Earl of Beverley between 1830 and 1865, was a British Tory politician.
 He served as Captain of the Yeomen of the Guard under Sir Robert Peel between 1842 and 1846.
 He succeeded to the title on 12 February 1865, after the death of Algernon Percy, 4th Duke of Northumberland whose wife Eleanor Percy, Duchess of Northumberland had borne no children.
Henry Cadogan, 4th Earl Cadogan
Henry Charles Cadogan, 4th Earl Cadogan PC (15 February 1812 – 8 June 1873), styled Viscount Chelsea between 1820 and 1864, was a British diplomat and Conservative politician.
 He served as Captain of the Yeomen of the Guard between 1866 and 1868.
Henry Fox-Strangways, 3rd Earl of Ilchester
Henry Stephen Fox-Strangways, 3rd Earl of Ilchester PC (21 February 1787 – 8 January 1858), styled Lord Stavordale from birth until 1802, was a British peer and Whig politician.
 He served as Captain of the Yeomen of the Guard under Lord Melbourne from 1835 to 1841.
Robert Gascoyne-Cecil, 3rd Marquess of Salisbury
Robert Arthur Talbot Gascoyne-Cecil, 3rd Marquess of Salisbury, {'1': ", '2': ", '3': ", '4': "} (3 February 183022 August 1903), styled Lord Robert Cecil before 1865 and Viscount Cranborne from June 1865 until April 1868, was a British Conservative statesman, serving as prime minister three times for a total of over 13 years.
 He was the last prime minister to head his full administration from the House of Lords.
William Monson, 1st Viscount Oxenbridge
William John Monson, 1st Viscount Oxenbridge PC (18 February 1829 – 16 April 1898), known as The Lord Monson between 1862 and 1886, was a British Liberal politician.
 He served as Captain of the Yeomen of the Guard between 1880 and 1885 and in 1886 under William Ewart Gladstone.
Baron Berkeley of Stratton
Baron Berkeley of Stratton, in the County of Cornwall, was a title in the Peerage of England.
 It was created in 1658 for John Berkeley, 1st Baron Berkeley of Stratton, a Royalist supporter during the English Civil War, of the Bruton branch of the Berkeley family.
 He was a descendant of Sir Maurice de Berkeley (14th century), younger son of Maurice de Berkeley, 2nd Baron Berkeley (see Baron Berkeley).
 Charles Berkeley, 2nd Viscount Fitzhardinge, was his brother and Charles Berkeley, 1st Earl of Falmouth, his nephew.
 Lord Berkeley of Stratton's second son, the third Baron (who succeeded his elder brother), was an Admiral in the Royal Navy.
 He died without surviving children and was succeeded by his younger brother, the fourth Baron.
 He was a politician and served as First Lord of Trade between 1714 and 1715.
 On his death the title passed to his eldest son, the fifth Baron.
 He was also a politician and held office as Captain of the Yeomen of the Guard and Captain of the Honourable Corps of Gentlemen-Pensioners.
 He was childless and the title became extinct on his death in 1775.
Earl of Aylesford
Earl of Aylesford, in the County of Kent, is a title in the Peerage of Great Britain.
 It was created in 1714 for the lawyer and politician Heneage Finch, 1st Baron Guernsey.
 He had already been created Baron Guernsey in the Peerage of England in 1703.
 Finch was the younger son of Heneage Finch, 1st Earl of Nottingham and the great-grandson of Elizabeth Heneage, 1st Countess of Winchilsea.
 Lord Aylesford's eldest son, the second Earl, represented Maidstone and Surrey in Parliament.
 In 1712, he married Mary Fisher, daughter of Sir Clement Fisher, 3rd Baronet.
 Through this marriage Packington Hall in Warwickshire came into the Finch family.
 Their son, the third Earl, sat as a Member of Parliament for Leicestershire and Maidstone.
 His eldest son, the fourth Earl, represented Castle Rising and Maidstone in the House of Commons, and after entering the House of Lords on his father's death, served as Captain of the Yeomen of the Guard from 1783 to 1804 and as Lord Steward of the Household from 1804 to 1812.
William Street, Limerick
William Street (Irish: "Sráid Liam" ) is one of the main thoroughfares of central Limerick City, Ireland.
 The street starts at a junction with O'Connell Street (Limerick's main thoroughfare) and continues in a south-east direction.
 The street is named after William Pery, 1st Baron Glentworth a relation of Edmund Sexton Pery who is credited with the development of the present day Limerick City Centre area known as Newtown Pery.
William Pery, 3rd Earl of Limerick
William Hale John Charles Pery, 3rd Earl of Limerick KP, PC, DL, JP (17 January 1840 – 8 August 1896), styled Viscount Glentworth until 1866, was an Irish peer and Conservative politician.
 He served as Captain of the Yeomen of the Guard under Lord Salisbury between 1889 and 1892 and again between 1895 and his death in 1896.
 In 1892 he was made a Knight of the Order of St Patrick.

Answer: Viscount Cranborne