Which is better?

or

Andrew Johnson

US president

Andrew Johnson

John Quincy Adams

US president

John Quincy Adams