query-2f55793e1e3c6ea34c54569e47da160e

rq turtle/ttl

title: Non-male people with a GitHub account and at least one publication SELECT DISTINCT ?author ?authorLabel (COUNT(?work) AS ?count) WHERE { ?work wdt:P50 ?author . ?author wdt:P2037 ?githubuser . ?author wdt:P21 ?gender . FILTER (?gender != wd:Q6581097) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?author ?authorLabel ORDER BY DESC(?count)

Use at

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#>
#title: Non-male people with a GitHub account and at least one publication
SELECT DISTINCT ?author ?authorLabel (COUNT(?work) AS ?count) WHERE {
  ?work wdt:P50 ?author .
  ?author wdt:P2037 ?githubuser .
  ?author wdt:P21 ?gender . 
  FILTER (?gender != wd:Q6581097)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?author ?authorLabel 
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?author"):::projected v6("?count") v2("?gender") v5("?githubuser") v3("?work"):::projected c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?gender != 'wd:Q6581097'"]] f0 --> v2 v3 --"wdt:P50"--> v4 v4 --"wdt:P2037"--> v5 v4 --"wdt:P21"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end bind2[/"count(?work)"/] v3 --o bind2 bind2 --as--o v6