query-2e3257dfbcb80c1df5847dc657716af1
title:Count of manuscripts by language SELECT ?lang ?langLabel ?langDescription (COUNT(DISTINCT ?q) AS ?mcount) WHERE { ?q (wdt:P31/wdt:P279*) wd:Q87167. ?q wdt:P407 ?lang SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } } GROUP BY ?lang ?langLabel ?langDescription ORDER BY DESC(?mcount)
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#>
#title:Count of manuscripts by language
SELECT ?lang ?langLabel ?langDescription (COUNT(DISTINCT ?q) AS ?mcount)
WHERE {
?q (wdt:P31/wdt:P279*) wd:Q87167.
?q wdt:P407 ?lang
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en"
}
}
GROUP BY ?lang ?langLabel ?langDescription
ORDER BY DESC(?mcount)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?lang"):::projected
v4("?mcount")
v2("?q"):::projected
a1((" "))
c3(["wd:Q87167"]):::iri
c6(["bd:serviceParam"]):::iri
c8(["en"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P407"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind1[/"count(?q)"/]
v2 --o bind1
bind1 --as--o v4