query-2978bfa35e9035b645085658a0cc3830
Bürgermeister von Sankt Andreasberg
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 ?item ?itemLabel ?start ?end ?FraktionLabel ?Bild WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". }
?item p:P39 ?statement.
?statement ps:P39 wd:Q61742486.
OPTIONAL {
?statement pq:P580 ?start.
FILTER(!(ISBLANK(?start)))
}
OPTIONAL {
?statement pq:P582 ?end.
FILTER(!(ISBLANK(?end)))
}
OPTIONAL {
?statement pq:P4100 ?Fraktion.
FILTER(!(ISBLANK(?end)))
}
OPTIONAL { ?item wdt:P18 ?Bild. }
}
ORDER BY (?start)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?Bild"):::projected
v5("?Fraktion")
v2("?end"):::projected
v3("?item"):::projected
v1("?start"):::projected
v4("?statement")
c4(["#91;AUTO_LANGUAGE#93;,de"]):::literal
c2(["bd:serviceParam"]):::iri
c7(["wd:Q61742486"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v3 --"p:P39"--> v4
v4 --"p:statement/P39"--> c7
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:qualifier/P580".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:qualifier/P582".-> v2
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:qualifier/P4100".-> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P18".-> v6
end