query-f1eeab59bbf60584301d5b0defdc397e

rq turtle/ttl

Propertiesinstance of (P31)subclass of (P279)review score (P444)review score by (P447)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?reviewer ?reviewerLabel (COUNT(?item) AS ?items) WHERE {
  ?item wdt:P31/wdt:P279* wd:Q7889;
        p:P444/pq:P447 ?reviewer.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?reviewer ?reviewerLabel
ORDER BY DESC (?items)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v4("?items") v3("?reviewer"):::projected a1((" ")) a2((" ")) c7(["bd:serviceParam"]):::iri c3(["wd:Q7889"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"p:direct/P31"--> a1 a1 --"p:direct/P279"--> c3 v2 --"p:P444"--> a2 a2 --"p:qualifier/P447"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind1[/"count(?item)"/] v2 --o bind1 bind1 --as--o v4