query-b25ad59e5392929f91ace06ac52e0358
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 DISTINCT ?genderLabel (count(?gender) as ?count) WHERE {
?item wdt:P106 wd:Q36180.
?item wdt:P19/wdt:P131* wd:Q5739.
?item wdt:P21 ?gender.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
} group by ?genderLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?count")
v2("?gender"):::projected
v1("?item")
a1((" "))
c5(["wd:Q5739"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["en"]):::literal
c2(["wd:Q36180"]):::iri
v1 --"wdt:P106"--> c2
v1 --"wdt:P19"--> a1
a1 --"wdt:P131"--> c5
v1 --"wdt:P21"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind1[/"count(?gender)"/]
v2 --o bind1
bind1 --as--o v3