According to that screenshot, the question wasn't "Who played the Doctor for the longest period?", but "Who played Dr Who for the longest period?" Since David Tennant very specifically insisted that he be credited as "The Doctor" at the end of the episodes, and not "Doctor Who," he's disqualified before you even begin…