query-1646ba96ae38bef50bd772827dd48691

rq turtle/ttl

Ministerial positions in a given country, not part of the cabinet to add them to it)Petscan(Usually to be fed to

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#>
SELECT DISTINCT ?item ?itemLabel 
WHERE 
{
  ?item wdt:P279* wd:Q83307 ; wdt:P17|wdt:P1001 wd:Q403 .
  MINUS { ?item wdt:P361/wdt:P279* wd:Q640506 } 
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected a1((" ")) c9(["bd:serviceParam"]):::iri c4(["wd:Q403"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal c2(["wd:Q83307"]):::iri c7(["wd:Q640506"]):::iri v1 --"wdt:P279"--> c2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P1001"--> c4 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P17"--> c4 end union0r <== or ==> union0l end subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P361"--> a1 a1 --"wdt:P279"--> c7 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end