query-598af0948b36a878f5180984c9d4674a

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
select ?item ?lang ?count where
{
   {
SELECT ?lang (COUNT(DISTINCT ?article) AS ?count) WHERE {
    ?article schema:about/wdt:P31 wd:Q7889 .
    FILTER (SUBSTR(str(?article), 11, 15) = ".wikipedia.org/") .
    ?article schema:inLanguage ?lang .
    } 
group by ?lang }    ?item wdt:P31 wd:Q10876391.
    ?item wdt:P424 ?lang      
}
     ORDER BY DESC(?count)

Query found at

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