query: select ?item ?count with {
  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.
    FILTER(?sitelinks = 1 )
      } 
  group by ?lang } as %i
  where
  {
    include %i
      ?item wdt:P31 wd:Q10876391.
      ?item wdt:P424 ?lang      
  }
       ORDER BY DESC(?count)