query-e5cd920fa52754e767eef9e78efb9237

rq turtle/ttl

Propertiesmain subject (P921)instance of (P31)subclass of (P279)part of (P361)facet of (P1269)cites work (P2860)

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 ?cited_work ?cited_workLabel
WHERE {
   {
  SELECT (count(?work) as ?count) ?cited_work 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:P2860 ?cited_work .
  }
  GROUP BY ?cited_work
}  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,da,de,es,fr,jp,nl,no,ru,sv,zh" . } 
}
ORDER BY DESC(?count)
LIMIT 200

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?cited_work"):::projected v5("?count"):::projected v2("?topic") v3("?work") a1((" ")) a2((" ")) a3((" ")) a4((" ")) c10(["en,da,de,es,fr,jp,nl,no,ru,sv,zh"]):::literal c8(["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:P2860"--> v4 bind2[/"count(?work)"/] v3 --o bind2 bind2 --as--o v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end