query-a2a61de722cd561d0ec53891004aaa47

rq turtle/ttl

, here is one that works:Wikidata:Database reports/Most sitelinked itemsBased on If you filter with "?item wdt:P17 wd:Q30" or something else, it might be more interesting (and avoids timeouts). Sample:

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 ?item ?itemLabel ?linkcount
WHERE 
{
  ?item wikibase:sitelinks ?linkcount .
  ?item wdt:P17 wd:Q30 .
  FILTER (?linkcount > 50)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?linkcount)
LIMIT 50

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v1("?linkcount"):::projected c6(["bd:serviceParam"]):::iri c4(["wd:Q30"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?linkcount > '50^^xsd:integer'"]] f0 --> v1 v2 --"wikibase:sitelinks"--> v1 v2 --"wdt:P17"--> c4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end