query-85d9e809c743a954aa957b69eac71b3f
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 ?member ?memberLabel ?office ?officeLabel ?dateBirth ?placeBirthLabel ?sexLabel ?start ?end Where {
?member p:P39 ?stat .
?stat ps:P39/wdt:P279* wd:Q3858501 .
?stat ps:P39 ?office .
OPTIONAL {?stat pq:P580 ?start . }
OPTIONAL {?stat pq:P582 ?end . }
OPTIONAL {?member wdt:P569 ?dateBirth. }
OPTIONAL {?member wdt:P19 ?placeBirth. }
OPTIONAL {?member wdt:P21 ?sex. }
service wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?dateBirth"):::projected
v5("?end"):::projected
v1("?member"):::projected
v3("?office"):::projected
v7("?placeBirth")
v8("?sex")
v4("?start"):::projected
v2("?stat")
a1((" "))
c4(["wd:Q3858501"]):::iri
c11(["bd:serviceParam"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,it"]):::literal
v1 --"p:P39"--> v2
v2 --"p:statement/P39"--> a1
a1 --"p:direct/P279"--> c4
v2 --"p:statement/P39"--> 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 optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P569".-> v6
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P19".-> v7
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P21".-> v8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end