query-20876940842e6d8c9956728b4d15f077
Speakers
Use at
- https://query.wikidata.org/sparql
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
?speakers
?language ?languageLabel
(CONCAT("#language/", SUBSTR(STR(?language), 32)) AS ?languageUrl)
?languageDescription
WHERE {
{
SELECT
(MAX(?speakers_) AS ?speakers)
?language
WHERE {
?language wdt:P31 wd:Q34770 ;
wdt:P1098 ?speakers_ .
}
GROUP BY ?language
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?speakers)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?language"):::projected
v4("?languageUrl")
v4("?speakers"):::projected
v3("?speakers_")
c2(["wd:Q34770"]):::iri
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> c2
v2 --"wdt:P1098"--> v3
bind1[/"max(?speakers_)"/]
v3 --o bind1
bind1 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind2[/"concat('#language/',substring(str(?language),'32^^xsd:integer'))"/]
v2 --o bind2
bind2 --as--o v4