query-86ec6a3f36865b455967481d02b598a5
SPARQL query
Use at
- https://query.wikidata.org/sparql
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?name ?roledata ?cabinetdata WHERE {
?name p:P39 ?statement.
?statement ps:P39 ?roledata;
pq:P5054 wd:Q6085350.
OPTIONAL { ?statement pq:P5054 ?cabinetdata. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?cabinetdata"):::projected
v1("?name"):::projected
v3("?roledata"):::projected
v2("?statement")
c4(["wd:Q6085350"]):::iri
v1 --"p:P39"--> v2
v2 --"p:statement/P39"--> v3
v2 --"p:qualifier/P5054"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P5054".-> v4
end