query-ad663761a9a3fb7ef81b9beec1a0fb30
Propertiesinstance of (P31)occupation (P106)sex or gender (P21)
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 WHERE {
?musher wdt:P31 wd:Q5 .
?musher wdt:P106 wd:Q500097 .
FILTER NOT EXISTS {
?musher wdt:P21 ?genre .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?genre")
v1("?musher"):::projected
c7(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c9(["fr,en"]):::literal
c5(["wd:Q500097"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P21"--> e0v2
e0v2("?genre"):::projected
e0v1("?musher"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"wdt:P21"--> v2
v1 --"wdt:P31"--> c3
v1 --"wdt:P106"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end