query-ec167fc37d047eb43522f950ddf30c21

rq turtle/ttl

title: Items about authors with a Wikispecies page SELECT ?author ?authorLabel ?count WITH { SELECT ?author (COUNT(?paper) AS ?count) WHERE { ?article schema:about ?author ; schema:isPartOf https://species.wikimedia.org/ . ?author wdt:P31 wd:Q5. ?paper wdt:P50 ?author. } GROUP BY ?author ORDER BY DESC(?count) LIMIT 200 } AS %i WHERE { INCLUDE %i SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" . } } 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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: Items about authors with a Wikispecies page
SELECT ?author ?authorLabel ?count
WHERE {
   {
  SELECT ?author (COUNT(?paper) AS ?count)
  WHERE {
    ?article schema:about ?author ;
      schema:isPartOf <https://species.wikimedia.org/> .
    ?author wdt:P31 wd:Q5.
    ?paper wdt:P50 ?author.
  }
  GROUP BY ?author
  ORDER BY DESC(?count)
  LIMIT 200
}  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" . }
}
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?article") v3("?author"):::projected v5("?count"):::projected v4("?paper") c3([https://species.wikimedia.org/]):::iri c8(["bd:serviceParam"]):::iri c5(["wd:Q5"]):::iri c10(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal v2 --"schema:about"--> v3 v2 --"schema:isPartOf"--> c3 v3 --"wdt:P31"--> c5 v4 --"wdt:P50"--> v3 bind1[/"count(?paper)"/] v4 --o bind1 bind1 --as--o v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end