query-da573e080419f69d0f3c0d713fdc2001
TODO
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?person ?personLabel ?position ?positionLabel ?st ?et WHERE {
?person wdt:P39/wdt:P279* wd:Q248352.
?person p:P39/p:P279* ?pMinister.
?pMinister ps:P39/ps:P279* ?position.
#?position wdt:P31/wdt:P279* wd:Q248352.
optional { ?pMinister pq:P580 ?st }
optional { ?pMinister pq:P582 ?et }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,[AUTO_LANGUAGE]". }
} order by ?person
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?et"):::projected
v2("?pMinister")
v1("?person"):::projected
v3("?position"):::projected
v4("?st"):::projected
a1((" "))
a2((" "))
a3((" "))
c13(["en,#91;AUTO_LANGUAGE#93;"]):::literal
c11(["bd:serviceParam"]):::iri
c3(["wd:Q248352"]):::iri
v1 --"p:direct/P39"--> a1
a1 --"p:direct/P279"--> c3
v1 --"p:P39"--> a2
a2 --"p:P279"--> v2
v2 --"p:statement/P39"--> a3
a3 --"p:statement/P279"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P580".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P582".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end