query-47c19d09c17a18930c42bdce40344490
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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#>
SELECT ?gender ?genderLabel (count(?item) as ?count)
WHERE
{
?item wdt:P31 wd:Q5.
?item wdt:P21 ?gender .
?item wdt:P569 ?DoB .
FILTER("1794-00-00"^^xsd:date <= ?DoB &&
?DoB < "1795-00-00"^^xsd:dat)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?item wikibase:sitelinks ?sl .
filter(?sl >0)
} group by ?gender ?genderLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?DoB")
v5("?count")
v4("?gender"):::projected
v3("?item"):::projected
v1("?sl")
c9(["bd:serviceParam"]):::iri
c5(["wd:Q5"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?sl > '0^^xsd:integer'"]]
f0 --> v1
f1[["'1794-00-00^^xsd:date' <= ?DoB?DoB < s1795-00-00^^<http://www.w3.org/2001/XMLSchema#dat>'"]]
f1 --> v2
v3 --"wdt:P31"--> c5
v3 --"wdt:P21"--> v4
v3 --"wdt:P569"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end
v3 --"wikibase:sitelinks"--> v1
bind3[/"count(?item)"/]
v3 --o bind3
bind3 --as--o v5