query-034b4cdb307f91e7c459f665ebca3b02
I found that queries using filter can be run in time but it will take too long to make by hand for me
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT (COUNT(?human) AS ?numHumans)
WHERE
{
?human wdt:P31 wd:Q5;
wdt:P570 ?dateOfDeath .
FILTER("2000-00-00"^^xsd:date <= ?dateOfDeath &&
?dateOfDeath < "2009-00-00"^^xsd:dat)
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?dateOfDeath")
v2("?human"):::projected
v3("?numHumans")
c4(["wd:Q5"]):::iri
f0[["'2000-00-00^^xsd:date' <= ?dateOfDeath?dateOfDeath < s2009-00-00^^<http://www.w3.org/2001/XMLSchema#dat>'"]]
f0 --> v1
v2 --"wdt:P31"--> c4
v2 --"wdt:P570"--> v1
bind2[/"count(?human)"/]
v2 --o bind2
bind2 --as--o v3