query-6819da5559fbd079206038506f4ca597

rq turtle/ttl

and by decade (also times out)

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?decade (COUNT(?human) AS ?numHumans)
WHERE
{
  ?human wdt:P31 wd:Q5 .
  ?human wdt:P569 ?dateOfDeath .
  BIND(FLOOR(YEAR(?dateOfDeath) / 10) * 10 AS ?decade) 
}GROUP BY ?decade 
ORDER BY DESC(?decade)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?dateOfDeath") v4("?decade"):::projected v2("?human"):::projected v4("?numHumans") c2(["wd:Q5"]):::iri v2 --"wdt:P31"--> c2 v2 --"wdt:P569"--> v3 bind0[/"numeric-floor(year-from-dateTime(?dateOfDeath) / '10^^xsd:integer') * '10^^xsd:integer'"/] v3 --o bind0 bind0 --as--o v4 bind2[/"count(?human)"/] v2 --o bind2 bind2 --as--o v4