query-edd1d1c2e08583f0d965b00d60b6b923
Truthy statement fail I get 28 rows returned. If I ask for the ps:P1087 values for her, I get 123 rows. None of her ELO statements has anything other than normal rank. And I find that the 28 wdt: values returned are the same as the distinct set of ps:P1087 values. (Q183250)Judit Polgár for (P1087)Elo rating I've been puzzling over Steak's ELO issue, above. Along the way I've discovered the following - for me - puzzle. If I ask for the truthy values of I was expecting that if I get 123 ps:P1087 values all with normal rank, I would also get 123 wdt:P1087 values. What am I missing?
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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/>
SELECT ?item ?value ?pit ?rank WHERE
{
values ?item {wd:Q183250}
?item p:P1087 ?stmt .
?stmt ps:P1087 ?value.
?stmt pq:P585 ?pit.
?stmt wikibase:rank ?rank.
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v4("?pit"):::projected
v5("?rank"):::projected
v2("?stmt")
v3("?value"):::projected
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q183250"])
bind00 --> bind0
v1 --"p:P1087"--> v2
v2 --"p:statement/P1087"--> v3
v2 --"p:qualifier/P585"--> v4
v2 --"wikibase:rank"--> v5