query-998c2450ba8a77d055f90d56fe0d2a2a
Elo ratings with two P585 08:51, 13 August 2018 (UTC)) talk (Steak, where one rating has the date December 2016 and May 2017. (Q27533749)Gaston Varela I am looking for a query that returs all elo ratings (P1087) that have a statement with two P585 qualifiers. An example would be
Use at
- https://query.wikidata.org/sparql
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 ?elo ?pit1 ?pit2 WHERE {
?item p:P1087 [ ps:P1087 ?elo; pq:P585 ?pit1; pq:P585 ?pit2 ] .
FILTER(?pit1 < ?pit2) .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?elo"):::projected
v4("?item"):::projected
v1("?pit1"):::projected
v2("?pit2"):::projected
a1((" "))
f0[["?pit1 < ?pit2"]]
f0 --> v1
f0 --> v2
a1 --"p:statement/P1087"--> v3
a1 --"p:qualifier/P585"--> v1
a1 --"p:qualifier/P585"--> v2
v4 --"p:P1087"--> a1