query-16c5bff2e549374169b383c18b41cec7

rq turtle/ttl

Propertiesexpansion of (P8646)instance of (P31)subclass of (P279)

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#>
SELECT ?game ?gameLabel (COUNT(?item) AS ?count) WHERE {
  ?item wdt:P8646 ?game.
  ?game (wdt:P31/(wdt:P279*)) wd:Q7889.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?game ?gameLabel
ORDER BY DESC (?count)

Query found at

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