query-80b5c573da260713cd44f893f9922039

rq turtle/ttl

Propertiesmain subject (P921)instance of (P31)subclass of (P279)part of (P361)facet of (P1269)published in (P1433)part of the series (P179)publisher (P123)

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:Table
SELECT ?count ?venue ?venueLabel ?publisherLabel
WHERE {
   {
  SELECT (count(?work) as ?count) ?venue ?publisher WHERE {
    VALUES ?topic { wd:Q84263196 wd:Q81068910 wd:Q82069695 } 
    { ?work wdt:P921/wdt:P31*/wdt:P279* ?topic . }
    union { ?work wdt:P921/wdt:P361+ ?topic . }
    union { ?work wdt:P921/wdt:P1269+ ?topic . }
    ?work wdt:P1433/wdt:P179* ?venue .
    ?venue wdt:P123 ?publisher . 
  }
  GROUP BY ?venue ?publisher
}  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,da,de,es,fr,jp,nl,no,ru,sv,zh" . } 
}
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?count"):::projected v5("?publisher") v2("?topic") v4("?venue"):::projected v3("?work") a1((" ")) a2((" ")) a3((" ")) a4((" ")) a5((" ")) c12(["en,da,de,es,fr,jp,nl,no,ru,sv,zh"]):::literal c10(["bd:serviceParam"]):::iri bind0[/VALUES ?topic/] bind0-->v2 bind00(["wd:Q84263196"]) bind00 --> bind0 bind01(["wd:Q81068910"]) bind01 --> bind0 bind02(["wd:Q82069695"]) bind02 --> bind0 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P921"--> a4 a4 --"wdt:P1269"--> v2 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P921"--> a3 a3 --"wdt:P361"--> v2 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P921"--> a1 a1 --"wdt:P31"--> a2 a2 --"wdt:P279"--> v2 end union0r <== or ==> union0l end v3 --"wdt:P1433"--> a5 a5 --"wdt:P179"--> v4 v4 --"wdt:P123"--> v5 bind2[/"count(?work)"/] v3 --o bind2 bind2 --as--o v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end