query-6c9a38243bb4d563a92b31af6f39179f
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 ?positionLabel ?genderLabel (COUNT(DISTINCT ?who) AS ?count) {
?position wdt:P279 wd:Q1711695 .
?who wdt:P39 ?position .
OPTIONAL { ?who wdt:P21 ?gender }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
GROUP BY ?positionLabel ?genderLabel
ORDER BY ?positionLabel ?genderLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?count")
v5("?gender")
v2("?genderLabel"):::projected
v3("?position")
v1("?positionLabel"):::projected
v4("?who"):::projected
c6(["bd:serviceParam"]):::iri
c8(["en"]):::literal
c2(["wd:Q1711695"]):::iri
v3 --"wdt:P279"--> c2
v4 --"wdt:P39"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P21".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind1[/"count(?who)"/]
v4 --o bind1
bind1 --as--o v6