query-9924cd9c473fefcb89a98e29684fe2b9
Average ageThis query gives me all new chess grandmasters per year:
Use at
- https://query.wikidata.org/sparql
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?year (COUNT(*) AS ?cnt) WHERE {
?item p:P2962 [ ps:P2962 wd:Q105269; pq:P580 ?start ] .
BIND(YEAR(?start) AS ?year) .
} GROUP BY ?year ORDER BY ASC(?year)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?cnt")
v3("?item")
v2("?start")
v4("?year"):::projected
a1((" "))
c2(["wd:Q105269"]):::iri
a1 --"p:statement/P2962"--> c2
a1 --"p:qualifier/P580"--> v2
v3 --"p:P2962"--> a1
bind0[/"year-from-dateTime(?start)"/]
v2 --o bind0
bind0 --as--o v4
bind2[/"count(*)"/]
bind2 --as--o v4