query-66c29453045315e70cdc57d481ca9bd2
Propertiesinstance of (P31)occupation (P106)given name (P735)subclass of (P279)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?musher ?musherLabel (COUNT(distinct ?prenom) as ?count_prenom) WHERE {
?musher wdt:P31 wd:Q5 .
?musher wdt:P106 wd:Q500097 .
?musher wdt:P735 ?prenom .
?prenom wdt:P31/wdt:P279* wd:Q202444 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" . }
} GROUP BY ?musher ?musherLabel
HAVING (?count_prenom >1)
ORDER BY DESC(?count_prenom)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count_prenom")
v2("?musher"):::projected
v3("?prenom"):::projected
a1((" "))
c10(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c12(["fr,en"]):::literal
c5(["wd:Q500097"]):::iri
c8(["wd:Q202444"]):::iri
f0[["?count_prenom > '1^^xsd:integer'"]]
f0 --> v4
v2 --"wdt:P31"--> c3
v2 --"wdt:P106"--> c5
v2 --"wdt:P735"--> v3
v3 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c8
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end
bind2[/"count(?prenom)"/]
v3 --o bind2
bind2 --as--o v4