Conversation so far:
can a foreign born person run for president
Status as a natural-born citizen of the United States is one of the eligibility requirements for holding the office of president or vice president.
what's the purpose of the requirement for United States presidents to be natural-born citizens
This requirement was intended to protect the nation from foreign influence.
do parents of United States presidents have to be natural-born citizens
Of the 44 men who have become president, there have been seven that had at least one parent who was not born on U.S. soil.
which presidents had at least one parent not born on U.S. soil
Four U.S. Presidents had one or both U.S.-citizen parents not born on U.S. soil (James Buchanan, Woodrow Wilson, Herbert Hoover, and Donald Trump).

Question: when was buchanan elected
Self-contained rewrite: when was James Buchanan elected as president