query-bfa16f84d3d331d262b414a11230399e

rq turtle/ttl

Individual cats with most sitelinks (counting links)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
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 ?s ?desc ?linkcount
WHERE
{
  ?s wdt:P31 wd:Q146.# cat
  ?s wikibase:sitelinks ?linkcount .
  ?s rdfs:label ?desc FILTER(lang(?desc)="en").
}
GROUP BY ?s ?desc ?linkcount
ORDER BY DESC(?linkcount)
LIMIT 50

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?desc"):::projected v1("?linkcount"):::projected v3("?s"):::projected c3(["wd:Q146"]):::iri f0[["?desc = 'en'"]] f0 --> v2 v3 --"wdt:P31"--> c3 v3 --"wikibase:sitelinks"--> v1 v3 --"rdfs:label"--> v2