query-2a795875703cd06eb9fc7667687eb0d5

rq turtle/ttl

Propertiesinstance of (P31)occupation (P106)given name (P735)subclass of (P279)

Use at

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:P735 ?prenom .
    ?prenom wdt:P31/wdt:P279* wd:Q202444
  }
  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; v1("?musher"):::projected v2("?prenom") a1((" ")) c9(["bd:serviceParam"]):::iri c5(["wd:Q5"]):::iri c11(["fr,en"]):::literal c7(["wd:Q500097"]):::iri c4(["wd:Q202444"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P735"--> e0v2 e0v2 --"wdt:P31"--> e0a1 e0a1 --"wdt:P279"--> e0c4 e0v1("?musher"):::projected e0v2("?prenom"):::projected e0a1((" ")):::projected e0c4(["wd:Q202444"]):::iri end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> v2 f0 --> c2 f0 --> a1 f0 --> c3 f0 --> c4 v1 --"wdt:P735"--> v2 v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c4 v1 --"wdt:P31"--> c5 v1 --"wdt:P106"--> c7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end