SPARQL/21
< SPARQL
SELECT
?lengua
?lenguaLabel
?conteo
WITH {
SELECT
?lengua
{
?audio
prop:P2 entity:Q2;
prop:P4 ?lengua.
}
} AS %lenguas
WITH {
SELECT
?lengua
(COUNT(?lengua) AS ?conteo)
{
INCLUDE %lenguas.
}
GROUP BY ?lengua
} AS %conteoPorLengua
{
INCLUDE %conteoPorLengua.
SERVICE wikibase:label { bd:serviceParam wikibase:language "es". }
}
ORDER BY DESC(?conteo)