query-280aa1c61484645c3f523418a6cae075
Fields Medal winners grouped by age in year they received the Medal
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX v: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?age (COUNT(DISTINCT(?mathematician)) AS ?count)
{
SELECT ?mathematician ((YEAR(?awarded) - YEAR(?birth)) AS ?age) WHERE {
?mathematician p:P166 ?fields . ?fields v:P166 wd:Q28835 . ?fields pq:P585 ?awarded .
?mathematician wdt:P569 ?birth .
}
}
GROUP BY ?age
ORDER BY ?age
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?age"):::projected
v4("?awarded")
v5("?birth")
v6("?count")
v3("?fields")
v2("?mathematician"):::projected
c3(["wd:Q28835"]):::iri
v2 --"p:P166"--> v3
v3 --"p:statement/P166"--> c3
v3 --"p:qualifier/P585"--> v4
v2 --"p:direct/P569"--> v5
bind0[/"year-from-dateTime(?awarded) - year-from-dateTime(?birth)"/]
v4 --o bind0
v5 --o bind0
bind0 --as--o v6
bind2[/"count(?mathematician)"/]
v2 --o bind2
bind2 --as--o v6