query-d66410806e1e4b5cb9e5b698d57a128c
Propertiesemployer (P108)member of (P463)affiliation (P1416)part of (P361)GRID ID (P2427)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?count ?institution ?institutionLabel
WHERE {
{
SELECT (COUNT(DISTINCT ?researcher) AS ?count) ?institution WHERE {
?researcher ( wdt:P108 | wdt:P463 | wdt:P1416 ) / wdt:P361* ?institution .
?institution wdt:P2427 ?grid .
}
GROUP BY ?institution
} SERVICE wikibase:label { bd:serviceParam wikibase:language "en,da,de,ep,fr,jp,nl,no,ru,sv,zh" . }
}
ORDER BY DESC(?count)
LIMIT 200
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?count"):::projected
v4("?grid")
v3("?institution"):::projected
v2("?researcher")
a1((" "))
c7(["bd:serviceParam"]):::iri
c9(["en,da,de,ep,fr,jp,nl,no,ru,sv,zh"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P1416"--> a1
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P463"--> a1
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P108"--> a1
end
union0r <== or ==> union0l
end
a1 --"wdt:P361"--> v3
v3 --"wdt:P2427"--> v4
bind1[/"count(?researcher)"/]
v2 --o bind1
bind1 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end