query-df39bc2c8eb5a440dbbe05dab9d8fbf7
Series with the most games
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?series (SAMPLE(?_label) AS ?label) (COUNT(?game) AS ?count)
WHERE
{
?game wdt:P31 wd:Q7889;
wdt:P179 ?series.
?series rdfs:label ?_label.
FILTER(LANG(?_label) = "en").
}
GROUP BY ?series
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?_label"):::projected
v6("?count")
v3("?game"):::projected
v5("?label")
v4("?series"):::projected
c3(["wd:Q7889"]):::iri
f0[["?_label = 'en'"]]
f0 --> v2
v3 --"wdt:P31"--> c3
v3 --"wdt:P179"--> v4
v4 --"rdfs:label"--> v2
bind3[/"sample(?_label)"/]
v2 --o bind3
bind3 --as--o v5
bind4[/"count(?game)"/]
v3 --o bind4
bind4 --as--o v6