query-56af868045a7a26d6a96cc9aba6df800

rq turtle/ttl

Steak

Use at

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 pqv: <http://www.wikidata.org/prop/qualifier/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?chessplayer ?chessplayerLabel ?elo_january_2000 ?rank
WHERE
{
  ?chessplayer wdt:P31 wd:Q5. # is a human
  ?chessplayer p:P1087 ?elo_statement .
  ?elo_statement wikibase:rank ?rank .
  ?elo_statement pqv:P585 ?time .
  ?time wikibase:timePrecision 10 . # precision is month
  ?time wikibase:timeValue ?month .
  FILTER (YEAR(?month) = 2000 && MONTH(?month) = 1)
  ?elo_statement ps:P1087 ?elo_january_2000
  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; v2("?chessplayer"):::projected v6("?elo_january_2000"):::projected v3("?elo_statement") v1("?month") v4("?rank"):::projected v5("?time") c13(["bd:serviceParam"]):::iri c4(["wd:Q5"]):::iri c15(["#91;AUTO_LANGUAGE#93;,en"]):::literal c9(["10^^xsd:integer"]):::literal f0[["year-from-dateTime(?month) = '2000^^xsd:integer'month-from-dateTime(?month) = '1^^xsd:integer'"]] f0 --> v1 v2 --"p:direct/P31"--> c4 v2 --"p:P1087"--> v3 v3 --"wikibase:rank"--> v4 v3 --"p:qualifier/value/P585"--> v5 v5 --"wikibase:timePrecision"--> c9 v5 --"wikibase:timeValue"--> v1 v3 --"p:statement/P1087"--> v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end