query-e307d5f5568c9f6aab342ee9716a9298
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 ?item ?itemLabel ?start ?end ?doLabel WHERE
{
?item wdt:P1830 wd:Q24027085 .
?item p:P1830 ?statement .
?statement ps:P1830 ?do.
optional {?statement pq:P580 ?start .}
optional {?statement pq:P582 ?end .}
SERVICE wikibase:label {bd:serviceParam wikibase:language "en" .}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?do")
v5("?end"):::projected
v1("?item"):::projected
v4("?start"):::projected
v2("?statement")
c8(["bd:serviceParam"]):::iri
c10(["en"]):::literal
c2(["wd:Q24027085"]):::iri
v1 --"p:direct/P1830"--> c2
v1 --"p:P1830"--> v2
v2 --"p:statement/P1830"--> 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;
c8 --"wikibase:language"--> c10
end