query-cc071b2aed205b8ce00f0908a1008a6c

rq turtle/ttl

title: First-level administrative divisions in Belgium, should be 11 SELECT DISTINCT ?item ?itemLabel WHERE { VALUES ?type { wd:Q89934 wd:Q17373496 wd:Q83057 } ?item wdt:P31 ?type . MINUS { ?item wdt:P576 [] } SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,fr,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 bd: <http://www.bigdata.com/rdf#>
#title: First-level administrative divisions in Belgium, should be 11
SELECT DISTINCT ?item ?itemLabel WHERE {
  VALUES ?type { wd:Q89934 wd:Q17373496 wd:Q83057 }
  ?item wdt:P31 ?type .
  MINUS { ?item wdt:P576 [] }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,fr,en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v1("?type") a1((" ")) c6(["nl,fr,en"]):::literal c4(["bd:serviceParam"]):::iri bind0[/VALUES ?type/] bind0-->v1 bind00(["wd:Q89934"]) bind00 --> bind0 bind01(["wd:Q17373496"]) bind01 --> bind0 bind02(["wd:Q83057"]) bind02 --> bind0 v2 --"wdt:P31"--> v1 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P576"--> a1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end