Which is better?

or

Barack Obama

US president

Barack Obama

James K. Polk

US president

James K. Polk