query-ef6262aaa4d781ebb53e5c44a1ea22f3

rq turtle/ttl

  1. Get publishers for the authors

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#>
#defaultView:BubbleChart
SELECT ?publisher ?publisherLabel (COUNT(?work) as ?works_qtty)
WHERE 
{
  VALUES ?authors { wd:Q63809637 wd:Q4484888 wd:Q63759170 wd:Q63808847 }
  ?work wdt:P50 ?authors.
  ?work wdt:P1433 [wdt:P123 ?publisher].

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?publisher ?publisherLabel
ORDER BY DESC(?works_qtty)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?authors") v4("?publisher"):::projected v3("?work"):::projected v5("?works_qtty") a1((" ")) c5(["bd:serviceParam"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/VALUES ?authors/] bind0-->v2 bind00(["wd:Q63809637"]) bind00 --> bind0 bind01(["wd:Q4484888"]) bind01 --> bind0 bind02(["wd:Q63759170"]) bind02 --> bind0 bind03(["wd:Q63808847"]) bind03 --> bind0 v3 --"wdt:P50"--> v2 a1 --"wdt:P123"--> v4 v3 --"wdt:P1433"--> a1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end bind2[/"count(?work)"/] v3 --o bind2 bind2 --as--o v5