The question of whether political leanings are connected to intelligence is a long-standing and often contentious topic.