query-9a537e5da5b960cbb7e94025f1ac2f2c

rq turtle/ttl

Sitelinks count

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
#defaultView:BubbleChart
SELECT ?lang (COUNT(DISTINCT ?article) AS ?count) WHERE {
  ?item wdt:P31 wd:Q7889.
  ?article schema:about ?item.
  FILTER((SUBSTR(STR(?article), 11 , 15 )) = ".wikipedia.org/")
  ?article schema:inLanguage ?lang.
  ?item wikibase:sitelinks ?sitelinks.
}
GROUP BY ?lang
ORDER BY DESC (?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?article"):::projected v6("?count") v3("?item") v4("?lang"):::projected v5("?sitelinks") c5(["wd:Q7889"]):::iri f0[["substring(str(?article),'11^^xsd:integer','15^^xsd:integer') = '.wikipedia.org/'"]] f0 --> v2 v3 --"wdt:P31"--> c5 v2 --"schema:about"--> v3 v2 --"schema:inLanguage"--> v4 v3 --"wikibase:sitelinks"--> v5 bind2[/"count(?article)"/] v2 --o bind2 bind2 --as--o v6