query-da78f56c7aaa216921c6ae88aabd9de5

rq turtle/ttl

Authors by nationality

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:Gutenberg authors by nationality
#defaultView:BarChart
SELECT DISTINCT ?nat ?natLabel (COUNT(?author) as ?count)
WHERE {
  ?author wdt:P1938 ?id ; wdt:P27 ?nat FILTER( !wikibase:isSomeValue(?nat) ).
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en". }
} GROUP BY ?nat ?natLabel HAVING (?count > 50)
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?author"):::projected v5("?count") v4("?id") v2("?nat"):::projected c5(["bd:serviceParam"]):::iri c7(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal f0[["?count > '50^^xsd:integer'"]] f0 --> v5 f1[["not http://wikiba.se/ontology#isSomeValue(?nat)"]] f1 --> v2 v3 --"wdt:P1938"--> v4 v3 --"wdt:P27"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end bind3[/"count(?author)"/] v3 --o bind3 bind3 --as--o v5