query-1716ec1eeb20846d07b33973d36b330c
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 DISTINCT ?item ?itemLabel ?enddate WHERE {
{
SELECT DISTINCT ?item WHERE {
?item wdt:P131* wd:Q365 .
}
}.
?item p:P31 ?statementNode .
?statementNode ps:P31/wdt:P279* wd:Q16970 .
OPTIONAL {
?statementNode pq:P582 ?enddate .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language 'de,en' }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?enddate"):::projected
v1("?item"):::projected
v2("?statementNode")
a1((" "))
c9(["bd:serviceParam"]):::iri
c6(["wd:Q16970"]):::iri
c11(["de,en"]):::literal
c2(["wd:Q365"]):::iri
v1 --"p:direct/P131"--> c2
v1 --"p:P31"--> v2
v2 --"p:statement/P31"--> a1
a1 --"p:direct/P279"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P582".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end