query-0eee7b4e50484093d1f8683c85dc9341

rq turtle/ttl

Usage of each label in Wikidata with genders Stack overflowInspired from

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#>
SELECT ?genderLabel ?orientationLabel (count(*) AS ?count) {
  SELECT ?genderLabel ?orientationLabel where {
    ?item wdt:P31 wd:Q5 .
    ?item wdt:P21 ?gender .
    ?item wdt:P91 ?orientation .
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  }
} GROUP BY ?genderLabel ?orientationLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?count") v2("?gender") v1("?item") v3("?orientation") c6(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"wdt:P31"--> c2 v1 --"wdt:P21"--> v2 v1 --"wdt:P91"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end bind1[/"count(*)"/] bind1 --as--o v4