query-20946428ad92afadaf8be703d7ffe790
TODO
Use at
- https://query.wikidata.org/sparql
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 ?sex ?sexLabel ?count
WHERE
{
{
SELECT ?sex (COUNT(?human) AS ?count)
WHERE
{
?human wdt:P31 wd:Q5.
?human wdt:P21 ?sex.
VALUES ?sex {wd:Q48270 wd:Q1097630 wd:Q1052281 wd:Q2449503}.
}
GROUP BY ?sex
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?count"):::projected
v1("?human")
v3("?sex"):::projected
c5(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> c2
v1 --"wdt:P21"--> v3
bind0[/VALUES ?sex/]
bind0-->v3
bind00(["wd:Q48270"])
bind00 --> bind0
bind01(["wd:Q1097630"])
bind01 --> bind0
bind02(["wd:Q1052281"])
bind02 --> bind0
bind03(["wd:Q2449503"])
bind03 --> bind0
bind2[/"count(?human)"/]
v1 --o bind2
bind2 --as--o v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end