query-152ed31749e2cb7179c92a6c9be3ce90
Authorship gender distribution (not distinct)
PREFIX target: http://www.wikidata.org/entity/Q26572
SELECT ?count ?gender ?genderLabel WITH { SELECT (COUNT(?author) AS ?count) ?gender WHERE { ?work wdt:P1433 target: . ?work wdt:P50 ?author . ?author wdt:P21 ?gender . } GROUP BY ?gender } AS %result WHERE { INCLUDE %result SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . } } ORDER BY DESC(?count)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Authorship gender distribution (not distinct)
PREFIX target: <http://www.wikidata.org/entity/Q26572>
SELECT ?count ?gender ?genderLabel
WHERE {
{
SELECT (COUNT(?author) AS ?count) ?gender WHERE {
?work wdt:P1433 target: .
?work wdt:P50 ?author .
?author wdt:P21 ?gender .
}
GROUP BY ?gender
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
}
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?author")
v5("?count"):::projected
v4("?gender"):::projected
v2("?work")
c6(["bd:serviceParam"]):::iri
c2([http://www.wikidata.org/entity/Q26572]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P1433"--> c2
v2 --"wdt:P50"--> v3
v3 --"wdt:P21"--> v4
bind1[/"count(?author)"/]
v3 --o bind1
bind1 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end