Which is better?

or

John Quincy Adams

US president

John Quincy Adams

James K. Polk

US president

James K. Polk