Question: Who is the paternal grandfather of Sir John Hamilton-Dalrymple, 5Th Baronet?

Knowledge 1: Sir John Hamilton-Dalrymple, 5th Baronet
Sir John Hamilton-Dalrymple, 5th Baronet (2 December 1780 – 26 May 1835) was a Scottish politician and the MP for Haddington Burghs between 1805 and 1806.He was the second son of Sir Hew Dalrymple, 3rd Baronet, and the younger brother of Sir Hew Dalrymple-Hamilton, 4th Baronet.An army officer, he served as a cornet in the 28th Light Dragoons in 1795, rising through the ranks of lieutenant in 1797, captain in 1800 and then going on to half-pay in 1802 during the Peace of Amiens.He became captain-commandant of the North Berwick Volunteers in 1803, and then a captain in the 73rd Regiment of Foot on the resumption of the war with France.He changed regiments, joining the 42nd Regiment of Foot as a captain in 1803, and by 1805 was a major in the 64th Regiment of Foot.He became a lieutenant-colonel in the 10th Regiment of Foot later that year, and served with the 22 Regiment of Foot in 1806.He became a brevet colonel in 1813 and a major-general in 1819.He served for a time at Madras and inherited his brother's baronetcy on 23 February 1834.He had married Charlotte Warrender, the daughter of Sir Patrick Warrender, on 30 July 1806.They had two sons and five daughters.He was succeeded in the baronetcy by his son, Hew. [SEP] Knowledge 2: Sir Hew Dalrymple, 3rd Baronet
Sir Hew Dalrymple, 3rd Baronet (26 October 1746 – 13 February 1800) was the Member of Parliament (MP) for Haddingtonshire 1780–1786.He was the son of Sir Hew Dalrymple, 2nd Baronet.He succeeded his father to the baronetcy in 1790.He was an army officer, serving as an ensign in the 31st Foot from 1763, a captain in the 1st Foot from 1768, and the 92nd Foot from 1779.He stepped down as MP in 1786, when he was appointed Auditor of the Excise in Scotland 1786, holding this post until his death.He changed his name to Hamilton-Dalrymple in 1796 when he inherited the estate of Bargany from his uncle, John Hamilton (formerly Dalrymple).He married in 1770 his cousin Janet, the daughter of William Duff of Crombie, sheriff depute of Ayrshire, and had eight sons and four daughters.He was succeeded by his eldest surviving son, Sir Hew Dalrymple-Hamilton, 4th Baronet.
Knowledge 1: Sir John Hamilton-Dalrymple, 5th Baronet
Sir John Hamilton-Dalrymple, 5th Baronet (2 December 1780 – 26 May 1835) was a Scottish politician and the MP for Haddington Burghs between 1805 and 1806.He was the second son of Sir Hew Dalrymple, 3rd Baronet, and the younger brother of Sir Hew Dalrymple-Hamilton, 4th Baronet.An army officer, he served as a cornet in the 28th Light Dragoons in 1795, rising through the ranks of lieutenant in 1797, captain in 1800 and then going on to half-pay in 1802 during the Peace of Amiens.He became captain-commandant of the North Berwick Volunteers in 1803, and then a captain in the 73rd Regiment of Foot on the resumption of the war with France.He changed regiments, joining the 42nd Regiment of Foot as a captain in 1803, and by 1805 was a major in the 64th Regiment of Foot.He became a lieutenant-colonel in the 10th Regiment of Foot later that year, and served with the 22 Regiment of Foot in 1806.He became a brevet colonel in 1813 and a major-general in 1819.He served for a time at Madras and inherited his brother's baronetcy on 23 February 1834.He had married Charlotte Warrender, the daughter of Sir Patrick Warrender, on 30 July 1806.They had two sons and five daughters.He was succeeded in the baronetcy by his son, Hew. [SEP] Knowledge 2: John Dalrymple, 10th Earl of Stair
John Hamilton Dalrymple, 10th Earl of Stair KT (1 April 1819 – 3 December 1903), styled Viscount Dalrymple from 1853 until 1864, was a Scottish peer and politician, who served as Governor of the Bank of Scotland for thirty-three years.
Knowledge 1: Sir John Hamilton-Dalrymple, 5th Baronet
Sir John Hamilton-Dalrymple, 5th Baronet (2 December 1780 – 26 May 1835) was a Scottish politician and the MP for Haddington Burghs between 1805 and 1806.He was the second son of Sir Hew Dalrymple, 3rd Baronet, and the younger brother of Sir Hew Dalrymple-Hamilton, 4th Baronet.An army officer, he served as a cornet in the 28th Light Dragoons in 1795, rising through the ranks of lieutenant in 1797, captain in 1800 and then going on to half-pay in 1802 during the Peace of Amiens.He became captain-commandant of the North Berwick Volunteers in 1803, and then a captain in the 73rd Regiment of Foot on the resumption of the war with France.He changed regiments, joining the 42nd Regiment of Foot as a captain in 1803, and by 1805 was a major in the 64th Regiment of Foot.He became a lieutenant-colonel in the 10th Regiment of Foot later that year, and served with the 22 Regiment of Foot in 1806.He became a brevet colonel in 1813 and a major-general in 1819.He served for a time at Madras and inherited his brother's baronetcy on 23 February 1834.He had married Charlotte Warrender, the daughter of Sir Patrick Warrender, on 30 July 1806.They had two sons and five daughters.He was succeeded in the baronetcy by his son, Hew. [SEP] Knowledge 2: Sir Hew Dalrymple-Hamilton, 4th Baronet
Sir Hew Dalrymple- Hamilton, 4th Baronet( 1774 – 23 February 1834) was a British politician.He was the eldest son of Sir Hew Dalrymple, 3rd Baronet.He succeeded his father in February, 1800 and took the additional surname of Hamilton.He matriculated at Christ Church, Oxford on 24 October 1791.On 16 June 1814, he was made a DCL.He served in the British Army as an Ensign in the 1st Foot Guards from 1792, as a lieutenant and captain from 1794 and as a major in the 28th Light Dragoons from 1799 to c. 1800.He was the Member of Parliament( MP) for Haddingtonshire 1795- 1800, Ayrshire 1803- 1807 and 1811–1818 and Haddington Burghs 1820- 1826.He died at Bargany in 1834.He had married the Hon. Jane Duncan, daughter of Adam Duncan, 1st Viscount Duncan and had one daughter.He was succeeded in the baronetcy by his brother Sir John Hamilton- Dalrymple, 5th Baronet.

Answer: Sir Hew Dalrymple, 2nd Baronet