query-6350eb05499757f70b993037ec42058f

rq turtle/ttl

Propertiesauthor (P50)sex or gender (P21)has edition or translation (P747)instance of (P31)edition or translation of (P629)title (P1476)translator (P655)

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 ?work ?workLabel (COUNT(DISTINCT ?translator) AS ?numFemaleTranslators)

WHERE {
  ?work wdt:P50 ?author.
  ?author wdt:P21 wd:Q6581072.
  {
    ?work wdt:P747 ?translation.
    ?translation wdt:P31 wd:Q7553.
  }
  UNION
  {?translation wdt:P629 ?work}
  ?translation wdt:P1476 ?translationTitle;
               wdt:P655 ?translator.
  ?translator wdt:P21 wd:Q6581072.

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?work ?workLabel
HAVING (?numFemaleTranslators > 1)
ORDER BY DESC(?numFemaleTranslators)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?author") v7("?numFemaleTranslators") v4("?translation") v5("?translationTitle") v6("?translator"):::projected v2("?work"):::projected c4(["wd:Q6581072"]):::iri c7(["wd:Q7553"]):::iri c12(["bd:serviceParam"]):::iri c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?numFemaleTranslators > '1^^xsd:integer'"]] f0 --> v7 v2 --"wdt:P50"--> v3 v3 --"wdt:P21"--> c4 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v4 --"wdt:P629"--> v2 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P747"--> v4 v4 --"wdt:P31"--> c7 end union0r <== or ==> union0l end v4 --"wdt:P1476"--> v5 v4 --"wdt:P655"--> v6 v6 --"wdt:P21"--> c4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end bind2[/"count(?translator)"/] v6 --o bind2 bind2 --as--o v7