query-9189fd80e226676919dc34dc72a74ae6
TODO
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 ?countryLabel (COUNT(?item) AS ?total)
WHERE
{
?item wdt:P485 ?institution;
wdt:P21 wd:Q6581072.
?institution wdt:P17 ?country.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?countryLabel
ORDER BY DESC (?total)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?country")
v3("?institution")
v2("?item"):::projected
v5("?total")
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q6581072"]):::iri
v2 --"wdt:P485"--> v3
v2 --"wdt:P21"--> c3
v3 --"wdt:P17"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v5