Question: How many votes did Keir Hardie win by?
Sentence: Keir Hardie, who had taken a leading role in getting the party established, was elected as Chairman of the Parliamentary Labour Party (in effect, the Leader), although only by one vote over David Shackleton after several ballots.
Answer in sentence: yes