query-3cb8df3a99b3b34f2968da44c0a00ef7

rq turtle/ttl

Fictional universes with the most related entities SELECT DISTINCT ?universe ?universeLabel (COUNT(DISTINCT ?item) AS ?itemCount) WHERE { ?item wdt:P1080 ?universe. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?universe ?universeLabel ORDER BY DESC(?itemCount)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Fictional universes with the most related entities
SELECT DISTINCT ?universe ?universeLabel (COUNT(DISTINCT ?item) AS ?itemCount)
WHERE 
{
  ?item wdt:P1080 ?universe.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?universe ?universeLabel
ORDER BY DESC(?itemCount)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v4("?itemCount") v3("?universe"):::projected c3(["bd:serviceParam"]):::iri c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"wdt:P1080"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end bind1[/"count(?item)"/] v2 --o bind1 bind1 --as--o v4