query-9798bfe18925b674a8207859d1e253db

rq turtle/ttl

title: Query for all current Swedish state agencies (should be 252) SELECT ?item ?itemLabel WHERE { ?item wdt:P31 wd:Q68295960. MINUS { ?item wdt:P576 [] } MINUS { ?item wdt:P1366 [] } SERVICE wikibase:label { bd:serviceParam wikibase:language "en,sv". } } ORDER BY ?itemLabel

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: Query for all current Swedish state agencies (should be 252)
SELECT ?item ?itemLabel WHERE {
  ?item wdt:P31 wd:Q68295960.
  MINUS { ?item wdt:P576 [] }
  MINUS { ?item wdt:P1366 [] }
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en,sv". }
} ORDER BY ?itemLabel

Query found at

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