Skip to content

Instantly share code, notes, and snippets.

@edouardhue
Created March 12, 2017 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edouardhue/32a7c8d6d3d4dfc81c5029df4f787e3c to your computer and use it in GitHub Desktop.
Save edouardhue/32a7c8d6d3d4dfc81c5029df4f787e3c to your computer and use it in GitHub Desktop.
Répartition hommes / femmes des noms de voie à Rennes
#defaultView:TreeMap
SELECT ?genreNomLabel ?natureLabel (COUNT(?voie) AS ?c)
WHERE {
?voie wdt:P31 ?nature ;
wdt:P31/wdt:P279* wd:Q83620 ; # Voie de communication
wdt:P131 wd:Q647 ; # à Rennes
wdt:P138 ?nom ;
wdt:P138/wdt:P31 wd:Q5 ;
wdt:P138/wdt:P21 ?genreNom .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "fr"
}
}
GROUP BY ?genreNomLabel ?natureLabel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment