query-3323bc4c3f7f5b90c4c015124068c487
Institutions holding archives about persons
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#>
#institutions holding archives about persons, ordered by the number of persons they have material on.
#defaultView:BubbleChart
SELECT DISTINCT ?institution ?institutionLabel ?countryLabel (count (*) as ?count) {
?person wdt:P31 wd:Q5 ; wdt:P485 ?institution.
OPTIONAL { ?institution wdt:P17 ?country } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} group by ?institution ?institutionLabel ?countryLabel order by desc(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?count")
v4("?country")
v3("?institution"):::projected
v2("?person")
c6(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> c2
v2 --"wdt:P485"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P17".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind1[/"count(*)"/]
bind1 --as--o v5