query-49d2e6cf802e8a5c9cd28acb7d07f318
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
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 ?DoD
WHERE
{
?item p:P1087 ?elo. #has an elo rating property
?elo ps:P1087 ?rating; pq:P585 ?date_given. #property statement has a qualifier of point in time
?item wdt:P570 ?DoD. #has a date of death
filter (?DoD<?date_given)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} order by ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?DoD"):::projected
v3("?date_given")
v5("?elo")
v4("?item"):::projected
v1("?itemLabel"):::projected
v6("?rating")
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?DoD < ?date_given"]]
f0 --> v2
f0 --> v3
v4 --"p:P1087"--> v5
v5 --"p:statement/P1087"--> v6
v5 --"p:qualifier/P585"--> v3
v4 --"p:direct/P570"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end