query-422ab5f0e762ded79ad65cb2e65c2241

rq turtle/ttl

title: Municipalities of Iceland (should be 64) SELECT DISTINCT ?item ?itemLabel WHERE { ?item wdt:P31 wd:Q955655 . ?item wdt:P17 wd:Q189 .

MINUS { ?item wdt:P576 []} MINUS { ?item wdt:P1366 []} SERVICE wikibase:label { bd:serviceParam wikibase:language "en,is". } }

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: Municipalities of Iceland (should be 64)
SELECT DISTINCT ?item ?itemLabel WHERE {
  ?item wdt:P31 wd:Q955655 .
  ?item wdt:P17 wd:Q189 .

  MINUS { ?item wdt:P576 []}
  MINUS { ?item wdt:P1366 []}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,is". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected a1((" ")) a2((" ")) c2(["wd:Q955655"]):::iri c8(["bd:serviceParam"]):::iri c4(["wd:Q189"]):::iri c10(["en,is"]):::literal v1 --"wdt:P31"--> c2 v1 --"wdt:P17"--> c4 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P576"--> a1 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P1366"--> a2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end