Conversation so far:
who became president after winning the electoral vote but losing the popular vote
There have been five United States presidential elections in which the winner lost the popular vote.
who was the most recent president who lost the popular vote
Donald Trump is the fifth person in U.S. history to become president while losing the nationwide popular vote.
who was the first president who lost the popular vote
John Quincy Adams was the first person in U.S. history to become president while losing the nationwide popular vote.
who was the runner up to john quincy adams
Andrew Jackson was the runner-up in the 1824 United States presidential election.

Question: when was the election
Self-contained rewrite: when was the 1824 election