query-84dc9ded40e36445518d9c21fe931b25

rq turtle/ttl

title: L2 (the 2 districts in the Western North Region of Ghana) SELECT ?item ?itemLabel WHERE { ?item wdt:P31 wd:Q545769. SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } MINUS { ?item wd:Q107663145 _:b1. } ?item wdt:P131 wd:Q60764360. }

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#>
# title: L2 (the 2 districts in the Western North Region of Ghana)
SELECT ?item ?itemLabel WHERE {
  ?item wdt:P31 wd:Q545769.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
  MINUS { ?item wd:Q107663145 _:b1. }
  ?item wdt:P131 wd:Q60764360.
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected a1((" ")) c4(["bd:serviceParam"]):::iri c2(["wd:Q545769"]):::iri c6(["en"]):::literal c9(["wd:Q60764360"]):::iri v1 --"wdt:P31"--> c2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"wd:Q107663145"--> a1 end v1 --"wdt:P131"--> c9