query-7b724a730ff19eefab1753851d8c2005
Ministerial positions with no jurisdiction set, but part of a cabinet which does have one
Use at
- https://query.wikidata.org/sparql
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#>
SELECT DISTINCT ?item ?itemLabel ?cabinet ?cabinetLabel ?cabinetJurisdiction ?cabinetJurisdictionLabel WHERE {
?item wdt:P279* wd:Q83307 ; wdt:P361 ?cabinet .
?cabinet wdt:P1001 ?cabinetJurisdiction .
FILTER NOT EXISTS { ?item wdt:P1001 [] }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?cabinetJurisdictionLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?cabinet"):::projected
v4("?cabinetJurisdiction"):::projected
v1("?cabinetJurisdictionLabel"):::projected
v2("?item"):::projected
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q83307"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P1001"--> e0a1
e0v1("?item"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> a1
v2 --"wdt:P1001"--> a1
v2 --"wdt:P279"--> c3
v2 --"wdt:P361"--> v3
v3 --"wdt:P1001"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end