query-cc93e405deb3af48554fc6bba61001e3
Fields Medal winners
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#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX v: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT (YEAR(?awarded) AS ?year) ?mathematicianLabel ((YEAR(?awarded) - YEAR(?birth)) AS ?age) ?birth ?death WHERE {
?mathematician p:P166 ?fields . ?fields v:P166 wd:Q28835 . ?fields pq:P585 ?awarded .
?mathematician wdt:P569 ?birth .
OPTIONAL{?mathematician wdt:P570 ?death}
SERVICE wikibase:label{bd:serviceParam wikibase:language "en,de"}
} ORDER BY ASC(?awarded)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?age")
v1("?awarded"):::projected
v4("?birth"):::projected
v5("?death"):::projected
v3("?fields")
v2("?mathematician")
v6("?year")
c8(["bd:serviceParam"]):::iri
c10(["en,de"]):::literal
c3(["wd:Q28835"]):::iri
v2 --"p:P166"--> v3
v3 --"p:statement/P166"--> c3
v3 --"p:qualifier/P585"--> v1
v2 --"p:direct/P569"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P570".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind0[/"year-from-dateTime(?awarded)"/]
v1 --o bind0
bind0 --as--o v6
bind1[/"year-from-dateTime(?awarded) - year-from-dateTime(?birth)"/]
v1 --o bind1
v4 --o bind1
bind1 --as--o v7