query-f02a3ad29b8d35e67f71f93ee02e5ce7
by Realworldobject, 2019-12-04
Literary works with the most translations
SELECT ?work ?workLabel (COUNT(DISTINCT ?translation) AS ?count) WHERE { ?translation wdt:P629 ?work . ?work wdt:P31/wdt:P279* wd:Q7725634. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?work ?workLabel ORDER BY DESC(?count) LIMIT 100
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#>
# by Realworldobject, 2019-12-04
# Literary works with the most translations
SELECT ?work ?workLabel (COUNT(DISTINCT ?translation) AS ?count)
WHERE {
?translation wdt:P629 ?work .
?work wdt:P31/wdt:P279* wd:Q7725634.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?work ?workLabel
ORDER BY DESC(?count)
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count")
v2("?translation"):::projected
v3("?work"):::projected
a1((" "))
c6(["bd:serviceParam"]):::iri
c4(["wd:Q7725634"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P629"--> v3
v3 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind1[/"count(?translation)"/]
v2 --o bind1
bind1 --as--o v4