query-beea46b08eab92bf2dc07eef7f583915

rq turtle/ttl

Propertiesinstance of (P31)announcement date (P6949)announced at (P9731)

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 ?event ?eventLabel (COUNT(?video_game) as ?count) WHERE {
  ?video_game wdt:P31 wd:Q7889;
              p:P6949 / pq:P9731 ?event.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?event ?eventLabel
ORDER BY DESC(?count)

Query found at

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