question: William Moody, was an American politician from Maine, he also served at the same time as Sheriff of York County, York County is the most southwestern county of the state of Maine located along New Hampshire's eastern border, in the which country?
answer: United States
context: Title: Milton Pond
  Passage: Milton Pond is a 271 acre water body located along the border between Strafford County, New Hampshire, and York County, Maine in the northeastern United States.  The lake lies in the towns of Milton, New Hampshire, and Lebanon, Maine.  It connects with Northeast Pond to the northeast, and with Town House Pond to the north.  A dam at the outlet of Milton Pond controls the water level for all three lakes.  Below the dam, the Salmon Falls River flows southeast along the Maine-New Hampshire border until it reaches the Piscataqua River.
  Title: East Parsonsfield, Maine
  Passage: East Parsonsfield is an unincorporated village in the town of Parsonsfield, York County, Maine, United States.  The community is located along Maine State Route 160 near the town's eastern border with Cornish.  East Parsonsfield has a post office with ZIP code 04028.
  Title: Caleb Ayer
  Passage: Caleb R. Ayer (1813–1883) was an American politician from Maine.  Ayer graduated from Dartmouth College in 1834 and was admitted to the bar in 1838.  He was an associate of Nathan Clifford and moved to Cornish in York County in 1841.  Six years later in 1847, Ayer was elected as a Democrat to the Maine State Senate and served as Senate President in 1848.  In 1856, he served as the Secretary of State of Maine under Governor Samuel Wells.  He served as the York County Attorney General from 1868-70.  He died in 1883.  The Caleb R. Ayer House in Cornish is listed on the National Register of Historic Places.
  Title: Julius Harburger
  Passage: Julius Harburger (1850 - November 9, 1914) was a New York City politician.  He was elected as the Sheriff of New York County, New York from 1911 to December 31, 1913.  He also served as the Coroner of New York County, New York in 1907 serving as the president of the board of coroners.
  Title: George D. Varney Sr.
  Passage: George D. Varney Sr. (June 28, 1903 – September 7, 1982) was an American politician from Maine.  Varney, a Republican, served in the Maine Legislature from 1930-1932 and again from 1936-1948.  Varney served in the Maine House of Representatives from 1930-1932 and from 1936 to 1942.  During his final term, Varney served as Speaker of the Maine House of Representatives.  He was elected to represent York County, Maine, including his residence in Kittery, Maine, in the Maine Senate from 1942 to 1948.  He served as Senate President from 1945-1948.
  Title: William Moody (Maine politician)
  Passage: William Moody (July 10, 1770 – March 15, 1822) was an American politician from Maine.  Moody, a resident of Saco, Maine and a Democratic-Republican, served in the Massachusetts Senate for 8 years (1804 to 1812).  Moody represented Saco at the Maine Constitutional Convention and was elected to the first Maine Senate in 1820.  He took over as President of the Maine Senate after the resignation in June 1820 by John Chandler, who was elected to the U.S. Senate by the Maine Legislature.  He also served at the same time as Sheriff of York County.  He died unexpectedly on March 15, 1822.
  Title: York County, Maine
  Passage: York County is the most southwestern county of the state of Maine located along New Hampshire's eastern border in the United States.  It is divided from Strafford County, New Hampshire by the
  Title: Pennsylvania Route 124
  Passage: Pennsylvania Route 124 (PA 124) is a 12.8 mi state route in York County in south central Pennsylvania.  The western terminus of the route is at the eastern border of York, where the road continues west as East Prospect Street towards PA 74.  Its eastern terminus is at PA 425 and PA 624 in the Lower Windsor Township community of Craley, where PA 124 continues south as PA 425.  PA 124 heads east from its beginning through suburban areas to the east of York, intersecting Interstate 83 (I-83) and PA 24.  Farther east, the route heads through rural land in eastern York County to East Prospect, where it turns south and comes to its terminus.
  Title: Northeast Pond
  Passage: Northeast Pond is a 645 acre water body located along the border between Strafford County, New Hampshire, and York County, Maine, in the northeastern United States.  The lake lies in the towns of Milton, New Hampshire, and Lebanon, Maine.  It connects with Milton Pond to the south, whose outlet is the Salmon Falls River.  Together with Town House Pond, a northwestern arm of Milton Pond, the water bodies form a single lake network known as Milton Three Ponds.
  Title: Daniel Goodenow
  Passage: Daniel Goodenow (October 30, 1793 – October 7, 1863) was an American politician and jurist from Maine.  Goodenow was born in Henniker, New Hampshire and was primarily self-educated, though he did graduate from Dartmouth College.  He studied law under future U.S. Senator John Holmes and was admitted to the York County, Maine Bar in 1817.  Residing in Alfred, Maine, Goodenow served three one year terms in the Maine House of Representatives (1827, 1828 and 1830), which included a term as Speaker of the Maine House of Representatives.  He was a member of the National Republican Party while in the Legislature.  In 1831, Goodenow was the Whig Party candidate for Governor.  Unsuccessful, he ran again in 1832 and 1833.  In 1838 and 1841, Goodenow served as Maine Attorney General.
citations: William Moody (Maine politician) York County, Maine