query-a11513d5461a4c9568ec6b2881ddfabf
Get all participants with ranking and number of the Giro d'Italia 2023 with their ranking and their start number. Now I want a list of the riders with their ranking and number P710) are a qualifier of the property Q114614803All Participants of the Giro d'Italia 2023 (With this query I get all riders waht I want:
Use at
- https://query.wikidata.org/sparql
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("?rider"):::projected
c9(["#91;AUTO_LANGUAGE#93;,de"]):::literal
c7(["bd:serviceParam"]):::iri
c2(["wd:Q33861"]):::iri
c4(["wd:Q106203942"]):::iri
v1 --"p:direct/P31"--> c2
v1 --"p:direct/P361"--> c4
v1 --"p:direct/P710"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end