Page MenuHomeDevCentral
Paste P128

Mushers with several given names
ActivePublic

Authored by dereckson on Nov 15 2015, 18:53.
Tags
None
Referenced Files
F12534: Mushers with several given names
Mar 12 2016, 03:49
Subscribers
None
http://www.wikidata.org/entity/Q18610005 Kathy Halverson
http://www.wikidata.org/entity/Q18638391 Adam Scott Gibler
http://www.wikidata.org/entity/Q19639525 Runa Elisabeth Skyrud
http://www.wikidata.org/entity/Q11977968 Jamie Nelson
http://www.wikidata.org/entity/Q21467505 Magne Storstein
http://www.wikidata.org/entity/Q21452097 Ivar Johan Sørli
http://www.wikidata.org/entity/Q21455502 Jon Christian Møller
http://www.wikidata.org/entity/Q18601617 Jerry Mercer
http://www.wikidata.org/entity/Q17194658 Inger-Marie Haaland
http://www.wikidata.org/entity/Q19361995 Stan Passananti
http://www.wikidata.org/entity/Q21467737 Ole Christian Povenius
http://www.wikidata.org/entity/Q21451917 Hans-Peter Heis
http://www.wikidata.org/entity/Q21451914 Hannu Grave
http://www.wikidata.org/entity/Q18601530 Lee Chamberlain
http://www.wikidata.org/entity/Q21467739 Ole Christian Uglebakken
http://www.wikidata.org/entity/Q18581184 Stan Bearup
http://www.wikidata.org/entity/Q18582028 Sam Deltour
http://www.wikidata.org/entity/Q21451776 Bjørn-Hugo Kristoffersen
http://www.wikidata.org/entity/Q21451915 Hans Georg Oltmans
http://www.wikidata.org/entity/Q18615724 Sonny Russell
http://www.wikidata.org/entity/Q21467960 Trine Danielsen Beddari
http://www.wikidata.org/entity/Q21452087 Ida Helena Jenssen
http://www.wikidata.org/entity/Q18627352 Stan Smith
http://www.wikidata.org/entity/Q21467895 Stefan Borsodi
http://www.wikidata.org/entity/Q21467907 Svein Arild Danielsen
http://www.wikidata.org/entity/Q21467898 Stein Jonny Andreassen
http://www.wikidata.org/entity/Q18586334 Sonny Lindner
http://www.wikidata.org/entity/Q21465531 Lars Erik Susegg
http://www.wikidata.org/entity/Q21467946 Tom Halvor Ludvigsen
http://www.wikidata.org/entity/Q21467521 Mats Nysæter
http://www.wikidata.org/entity/Q21467990 Waling Magnus Gorter Voie
http://www.wikidata.org/entity/Q18587530 Dave O'Farrell
http://www.wikidata.org/entity/Q21451918 Hans-Petter Haugen
http://www.wikidata.org/entity/Q18587191 André Nadeau
http://www.wikidata.org/entity/Q21467780 Paul Antoni Nilsen
http://www.wikidata.org/entity/Q18586361 Jerry Louden
http://www.wikidata.org/entity/Q18587600 Sam Perrino
http://www.wikidata.org/entity/Q18601738 Jerry LaVoie
http://www.wikidata.org/entity/Q21467537 Miquel-Angel Martinez
http://www.wikidata.org/entity/Q18674772 Thor-Atle Svortevik
http://www.wikidata.org/entity/Q18641931 Sam Perino
http://www.wikidata.org/entity/Q21467733 Odd-Johan Movinkel
http://www.wikidata.org/entity/Q21451799 Cécile Dupe
http://www.wikidata.org/entity/Q21455498 Jon Børge Stina
http://www.wikidata.org/entity/Q18638330 G. B. Jones
http://www.wikidata.org/entity/Q18642382 Anne Capistrant
http://www.wikidata.org/entity/Q21451761 Bjørn Arthur Klubnes
http://www.wikidata.org/entity/Q12004391 Sverre K. Seeberg
http://www.wikidata.org/entity/Q18638322 Stan Passananiti
http://www.wikidata.org/entity/Q21455543 Juha Pekka Björkstedt
http://www.wikidata.org/entity/Q21467944 Thor Harald Seljevoll
http://www.wikidata.org/entity/Q18581496 Jean-Denis Britten
http://www.wikidata.org/entity/Q18585810 Pierre-Antoine Heritier
http://www.wikidata.org/entity/Q18601740 Gayle Nienhauser
http://www.wikidata.org/entity/Q21455416 Jan Petter Amundsen
http://www.wikidata.org/entity/Q18636165 Sam Maxwell
http://www.wikidata.org/entity/Q21467906 Svein Åge Jakobsen
http://www.wikidata.org/entity/Q21455459 Jean-Philippe Pontier
http://www.wikidata.org/entity/Q21471038 May-Conny Johansen
http://www.wikidata.org/entity/Q21467833 Roy-Åge Jensen Ugseth
http://www.wikidata.org/entity/Q18586017 Jerry Joinson
http://www.wikidata.org/entity/Q21451852 Erik Loftsgård
http://www.wikidata.org/entity/Q21451783 Britt-Johanne Rundhaug
http://www.wikidata.org/entity/Q5249867 DeeDee Jonrowe
http://www.wikidata.org/entity/Q16166018 Roy-Helge Andreassen
http://www.wikidata.org/entity/Q21465524 Lars Erik Gausen
http://www.wikidata.org/entity/Q21467908 Svein Henrik Solberg
http://www.wikidata.org/entity/Q19698254 Geir Idar Hjelvik
http://www.wikidata.org/entity/Q18600437 Jerry Riley
http://www.wikidata.org/entity/Q21455400 Jan Gunnar Vian
http://www.wikidata.org/entity/Q18643314 Mats Pettersson
http://www.wikidata.org/entity/Q18636020 Sonny King
http://www.wikidata.org/entity/Q18603544 Jerry Raychel
http://www.wikidata.org/entity/Q19361436 Anne Beate Tunheim
http://www.wikidata.org/entity/Q21467532 Michelle Kristin Pedersen
http://www.wikidata.org/entity/Q21451916 Hans Petter Dalby
http://www.wikidata.org/entity/Q18601746 Lee Gardino
http://www.wikidata.org/entity/Q18588302 Kathy Swenson
http://www.wikidata.org/entity/Q19361437 Anne Fyhn
http://www.wikidata.org/entity/Q18603147 Stan Zuray
http://www.wikidata.org/entity/Q18587478 Sam Nelson
http://www.wikidata.org/entity/Q21452093 Inger-Marie Lupton
http://www.wikidata.org/entity/Q21467740 Ole-Gunnar Eriksen
http://www.wikidata.org/entity/Q19953322 Knut Olav Grimdalen
http://www.wikidata.org/entity/Q17111329 Tove Sørensen
http://www.wikidata.org/entity/Q18607363 Stan Ferguson
http://www.wikidata.org/entity/Q19636437 Aud Kristin Bjørgum
http://www.wikidata.org/entity/Q19698263 Kim Andre Andersen Johansen
http://www.wikidata.org/entity/Q18615741 Bert Hanson
http://www.wikidata.org/entity/Q21469856 Kent-Gjøran Svendsen
http://www.wikidata.org/entity/Q18585825 J. T. Hessert
http://www.wikidata.org/entity/Q21467829 Rolf-Helge Ellingsen
http://www.wikidata.org/entity/Q21467897 Stein Are Harder
http://www.wikidata.org/entity/Q19698259 Juha Hokka
http://www.wikidata.org/entity/Q18643341 C. Killigrock
http://www.wikidata.org/entity/Q19953372 Mette Ånes
http://www.wikidata.org/entity/Q18588449 Kathy Tucker
http://www.wikidata.org/entity/Q21467909 Svein Rune Røksland
http://www.wikidata.org/entity/Q21451882 Frank Andre Hjelm
http://www.wikidata.org/entity/Q18601517 Jerry Austin
http://www.wikidata.org/entity/Q19361338 Jerry Bath
http://www.wikidata.org/entity/Q21451764 Bjørn Petter Kaltenborn
http://www.wikidata.org/entity/Q21467962 Trine Marie Flåtten
http://www.wikidata.org/entity/Q19404228 Dakota Schlosser
http://www.wikidata.org/entity/Q21451846 Eirik Leander Rotmo

Event Timeline

dereckson changed the title of this paste from untitled to Mushers with several given names.

Quick and dirty, should use Counter class instead:

#!/usr/bin/env python3

import json
from collections import defaultdict

with open("query.json") as queryResultsFile:
    queryResults = json.load(queryResultsFile);

mushers = defaultdict(int)
for item in queryResults:
    mushers[item['musher']] += 1

for musher in [musher for musher, count in mushers.items() if count > 1]:
    label = ''
    for item in queryResults:
        if item['musher'] == musher:
            label = item['musherLabel']
    print(musher, label)