query-7f2cf34e239d836c45b4ca2752f322a9
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 ?genderLabel (count(distinct ?actor) as ?count) (count(?gender) as ?count2) where
{
?ep wdt:P31 wd:Q21191270.
?ep wdt:P179 wd:Q79784.
?ep wdt:P161 ?actor.
?actor wdt:P21 ?gender.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
} group by ?genderLabel order by desc(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?actor"):::projected
v5("?count")
v5("?count2")
v2("?ep")
v4("?gender"):::projected
c8(["bd:serviceParam"]):::iri
c4(["wd:Q79784"]):::iri
c10(["en"]):::literal
c2(["wd:Q21191270"]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P179"--> c4
v2 --"wdt:P161"--> v3
v3 --"wdt:P21"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind2[/"count(?actor)"/]
v3 --o bind2
bind2 --as--o v5
bind3[/"count(?gender)"/]
v4 --o bind3
bind3 --as--o v5