query-0068945190800bc432d939a0b3000f3d
employees of Cornell who have author the most academic writings (not necessarily within that tenure though) SELECT ?institution ?institutionLabel ?scholar ?scholarLabel (COUNT(DISTINCT ?work) AS ?numWorks) WHERE { VALUES ?institution { wd:Q49115 } ?scholar wdt:P108/wdt:P749 ?institution. ?work wdt:P50 ?scholar; wdt:P31/wdt:P279 wd:Q4119870. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?scholar ?scholarLabel ?institution ?institutionLabel ORDER BY DESC(?numWorks) 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#>
# employees of Cornell who have author the most academic writings (not necessarily within that tenure though)
SELECT ?institution ?institutionLabel ?scholar ?scholarLabel (COUNT(DISTINCT ?work) AS ?numWorks)
WHERE
{
VALUES ?institution {
wd:Q49115
}
?scholar wdt:P108/wdt:P749* ?institution.
?work wdt:P50 ?scholar;
wdt:P31/wdt:P279* wd:Q4119870.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?scholar ?scholarLabel ?institution ?institutionLabel
ORDER BY DESC(?numWorks)
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?institution"):::projected
v5("?numWorks")
v3("?scholar"):::projected
v4("?work"):::projected
a1((" "))
a2((" "))
c8(["bd:serviceParam"]):::iri
c6(["wd:Q4119870"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?institution/]
bind0-->v2
bind00(["wd:Q49115"])
bind00 --> bind0
v3 --"wdt:P108"--> a1
a1 --"wdt:P749"--> v2
v4 --"wdt:P50"--> v3
v4 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind2[/"count(?work)"/]
v4 --o bind2
bind2 --as--o v5