query-bc0d6e8820c9b9784ad28b32b3998f09

rq turtle/ttl

Chess players without a title statement SELECT ?player ?playerLabel WHERE { ?player wdt:P106 wd:Q10873124 . MINUS { ?player wdt:P2962 [] } . OPTIONAL { ?sitelink schema:about ?player . } FILTER(!BOUND(?sitelink)) . MINUS { ?otheritem ?anyprop ?player } SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Chess players without a title statement
SELECT ?player ?playerLabel WHERE {
  ?player wdt:P106 wd:Q10873124 .
  MINUS { ?player wdt:P2962 [] } .
  OPTIONAL {
    ?sitelink schema:about ?player .
  }
  FILTER(!BOUND(?sitelink)) .
  MINUS { ?otheritem ?anyprop ?player }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?anyprop") v3("?otheritem") v2("?player"):::projected v1("?sitelink") a1((" ")) c6(["bd:serviceParam"]):::iri c2(["wd:Q10873124"]):::iri c8(["en"]):::literal f0[["not bound(?sitelink)"]] f0 --> v1 v2 --"wdt:P106"--> c2 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P2962"--> a1 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."schema:about".-> v2 end subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v3 -->v4--> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end