query-f2ee9184fa05f8530ae176634b7a071a

rq turtle/ttl

title: L2 (the 22 districts in the Eastern 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:Q405670. }

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 22 districts in the Eastern 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:Q405670.
}

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:Q405670"]):::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