query-936e58c6ef52d8bf3a986e7df7fab345
Propertiesposition held (P39)start time (P580)end time (P582)series ordinal (P1545)replaces (P1365)replaced by (P1366)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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 ?office ?item ?itemLabel ?itemDescription ?start ?end ?order ?predecessor ?successor
{
?item p:P39 ?fc_stmt .
?fc_stmt ps:P39 ?office ; pq:P580 ?start .
values ?office { wd:Q65243720 wd:Q66581831 }
optional { ?fc_stmt pq:P582 ?end }
optional { ?fc_stmt pq:P1545 ?order }
optional { ?fc_stmt pq:P1365 ?predecessor }
optional { ?fc_stmt pq:P1366 ?successor}
SERVICE wikibase:label { bd:serviceParam wikibase:language "el" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?end"):::projected
v2("?fc_stmt")
v1("?item"):::projected
v5("?office"):::projected
v6("?order"):::projected
v7("?predecessor"):::projected
v4("?start"):::projected
v8("?successor"):::projected
c9(["bd:serviceParam"]):::iri
c11(["el"]):::literal
v1 --"p:P39"--> v2
v2 --"p:statement/P39"--> v5
v2 --"p:qualifier/P580"--> v4
bind0[/VALUES ?office/]
bind0-->v5
bind00(["wd:Q65243720"])
bind00 --> bind0
bind01(["wd:Q66581831"])
bind01 --> bind0
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P582".-> v5
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P1545".-> v6
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P1365".-> v7
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P1366".-> v8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end