query-49869c49a88d759eb5c05260c44d63aa

rq turtle/ttl

And with this query I get all the rankings:

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?rider ?riderLabel ?number ?rank  WHERE {
  ?Giro wdt:P31 wd:Q33861;
   wdt:P361 wd:Q106203942;
   #wdt:P710 ?rider;
   p:P710 ?GiroStatement.
  OPTIONAL { ?GiroStatement pq:P1352 ?rank. }
  OPTIONAL { ?GiroStatement pq:P1618 ?number. }

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?Giro") v2("?GiroStatement") v4("?number"):::projected v3("?rank"):::projected c11(["#91;AUTO_LANGUAGE#93;,de"]):::literal c9(["bd:serviceParam"]):::iri c2(["wd:Q33861"]):::iri c4(["wd:Q106203942"]):::iri v1 --"p:direct/P31"--> c2 v1 --"p:direct/P361"--> c4 v1 --"p:P710"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P1352".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P1618".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end