query-f631adf1ab41c49cf5dfd0ba7ec156d5
John Cummings(P3896)geoshape
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#>
#defaultView:Timeline
SELECT ?org ?orgLabel ?inception (COALESCE(?dissolved, ?endTime) AS ?end) WHERE {
?org p:P31 ?statement;
wdt:P571 ?inception.
?statement ps:P31/wdt:P279* wd:Q5926733.
OPTIONAL { ?statement pq:P582 ?endTime. }
OPTIONAL { ?org wdt:P576 ?dissolved. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?dissolved"):::projected
v6("?end")
v4("?endTime"):::projected
v3("?inception"):::projected
v1("?org"):::projected
v2("?statement")
a1((" "))
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c5(["wd:Q5926733"]):::iri
v1 --"p:P31"--> v2
v1 --"p:direct/P571"--> v3
v2 --"p:statement/P31"--> a1
a1 --"p:direct/P279"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P582".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P576".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end
bind0[/"?dissolved?endTime"/]
v5 --o bind0
v4 --o bind0
bind0 --as--o v6