query-3de59d3fff0c40abe5ba293e292d3781
Oldest when winning, variation on Dipsacus fullonum's query
SELECT DISTINCT ?item ?itemLabel ?birth ?d ?age WHERE { ?item wdt:P106 wd:Q10833314 ; wdt:P569 ?birth . BIND(YEAR(?d)-YEAR(?birth) as ?age) ?tournament wdt:P1346 ?item ; wdt:P585 ?d . ?tournament wdt:P2094 wd:Q16893072 . # men's single ?tournament wdt:P361 / wdt:P31 / wdt:P361 wd:Q102113 . # part of / instance of / part of Grand Slam SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY DESC(?age) LIMIT 100
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 bd: <http://www.bigdata.com/rdf#>
#Oldest when winning, variation on Dipsacus fullonum's query
SELECT DISTINCT ?item ?itemLabel ?birth ?d ?age
WHERE
{
?item wdt:P106 wd:Q10833314 ; wdt:P569 ?birth .
BIND(YEAR(?d)-YEAR(?birth) as ?age)
?tournament wdt:P1346 ?item ; wdt:P585 ?d .
?tournament wdt:P2094 wd:Q16893072 . # men's single
?tournament wdt:P361 / wdt:P31 / wdt:P361 wd:Q102113 . # part of / instance of / part of Grand Slam
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?age)
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?age"):::projected
v3("?birth"):::projected
v5("?d"):::projected
v2("?item"):::projected
v4("?tournament")
a1((" "))
a2((" "))
c10(["wd:Q102113"]):::iri
c2(["wd:Q10833314"]):::iri
c12(["bd:serviceParam"]):::iri
c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c7(["wd:Q16893072"]):::iri
v2 --"wdt:P106"--> c2
v2 --"wdt:P569"--> v3
bind0[/"year-from-dateTime(?d) - year-from-dateTime(?birth)"/]
v5 --o bind0
v3 --o bind0
bind0 --as--o v4
v4 --"wdt:P1346"--> v2
v4 --"wdt:P585"--> v5
v4 --"wdt:P2094"--> c7
v4 --"wdt:P361"--> a1
a1 --"wdt:P31"--> a2
a2 --"wdt:P361"--> c10
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end