Here are the five examples of this throughout history.
-Donald J. Trump who lost by 2.9 million votes to Hillary Clinton in the 2016 election.
-George W. Bush who lost by 543,816 votes to Al Gore in the 2000 election.
-Benjamin Harrison who lost by 95,713 votes to Grover Cleveland in 1888
-Rutherford B. Hayes who lost by 264,292 votes to Samuel J. Tilden in 1876
-John Quincy Adams who lost by 44,804 votes to Andrew Jackson in 1824