sentences:  Garnsey was elected as an Adams candidate to the 19th and 20th United States Congresses, holding office from March 4, 1825, to March 3, 1829.In 1828, he ran unsuccessfully for re-election as an independent candidate with the support of the Anti-Masonic Party, even though he had been a Mason himself.During the 1828 campaign, when Anti-Masons were considering whether to support John Quincy Adams for reelection as president, Garnsey wrote a letter to Adams to ask whether he was a Mason.