query-e56b509d67ab7df964635081b72db8f3
фильмы по языкам SELECT ?lang ?langLabel ?cnt WHERE { { SELECT distinct ?lang (COUNT(distinct ?item) AS ?cnt) WHERE { ?item (wdt:P31/wdt:P279*) wd:Q11424. ?item wdt:P364 ?lang. } GROUP BY ?lang } SERVICE wikibase:label { bd:serviceParam wikibase:language "ru,[AUTO_LANGUAGE],en". } } ORDER BY DESC(?cnt)
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 ?lang ?langLabel ?cnt WHERE {
{
SELECT distinct ?lang (COUNT(distinct ?item) AS ?cnt) WHERE {
?item (wdt:P31/wdt:P279*) wd:Q11424.
?item wdt:P364 ?lang.
} GROUP BY ?lang
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "ru,[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?cnt)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?cnt"):::projected
v2("?item")
v3("?lang"):::projected
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["ru,#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q11424"]):::iri
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P364"--> v3
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end