query-30695870ab6aa23bb2eaabd61efd7bb2

rq turtle/ttl

title: journals with how often they cite a retracted article SELECT ?journal ?journalLabel ?count WITH { SELECT ?journal (COUNT(DISTINCT ?citesRetracted) AS ?count) WHERE { ?citesRetracted wdt:P2860 / wdt:P31 wd:Q45182324 ; wdt:P1433 ?journal . } GROUP BY ?journal } AS %JOURNALS { INCLUDE %JOURNALS SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],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 bd: <http://www.bigdata.com/rdf#>
#title: journals with how often they cite a retracted article
SELECT ?journal ?journalLabel ?count {
   {
  SELECT ?journal (COUNT(DISTINCT ?citesRetracted) AS ?count) WHERE {
    ?citesRetracted wdt:P2860 / wdt:P31 wd:Q45182324 ;
                    wdt:P1433 ?journal .
  } GROUP BY ?journal
}  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?citesRetracted") v4("?count"):::projected v3("?journal"):::projected a1((" ")) c6(["bd:serviceParam"]):::iri c3(["wd:Q45182324"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"wdt:P2860"--> a1 a1 --"wdt:P31"--> c3 v2 --"wdt:P1433"--> v3 bind1[/"count(?citesRetracted)"/] v2 --o bind1 bind1 --as--o v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end