query-9217c258c9fb8c6c93df26862a4caddf
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?DoBYear ?gender (count(?item) as ?count)
WHERE
{
?item wdt:P31 wd:Q5.
?item wdt:P21 ?gender .
?item wdt:P569 ?DoB .
BIND (year(?DoB) as ?DoBYear)
} group by ?DoBYear ?gender
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?DoB")
v4("?DoBYear"):::projected
v5("?count")
v2("?gender"):::projected
v1("?item"):::projected
c2(["wd:Q5"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P21"--> v2
v1 --"wdt:P569"--> v3
bind0[/"year-from-dateTime(?DoB)"/]
v3 --o bind0
bind0 --as--o v4
bind2[/"count(?item)"/]
v1 --o bind2
bind2 --as--o v5