Which is better?

or

Andrew Jackson

US president

Andrew Jackson

John F. Kennedy

US president

John F. Kennedy