query-9a2df1b5d767a733c7154330f947f250
Archives1. Return a list of people ranked in the order of largest number of institutions holding their papers to smallest number of institutions holding their papers:
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 ?person ?personLabel (COUNT(?archive) AS ?count)
WHERE {
?person wdt:P31 wd:Q5 .
?person wdt:P485 ?archive .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
}
}
GROUP BY ?person ?personLabel
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?archive"):::projected
v4("?count")
v2("?person"):::projected
c5(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c7(["en"]):::literal
v2 --"wdt:P31"--> c2
v2 --"wdt:P485"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind1[/"count(?archive)"/]
v3 --o bind1
bind1 --as--o v4