query-6475170bf4b8f5a62600d5e5ab0df1c1
Deutsche Bundesländer, sortiert nach Anzahl Studierender
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 DISTINCT ?state ?stateLabel (sum(?numberOfStudents) AS ?numberOfStudentsPerState)
{
?uni wdt:P31 wd:Q3918 . # Uni
?uni wdt:P17 wd:Q183 . # nur Deutsche Hochschulen
?uni wdt:P131* ?state .
?state wdt:P31 wd:Q1221156 . # Bundesland
?uni wdt:P2196 ?numberOfStudents .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de,en" }
} GROUP BY ?state ?stateLabel
ORDER BY DESC(?numberOfStudentsPerState)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?numberOfStudents"):::projected
v5("?numberOfStudentsPerState")
v3("?state"):::projected
v2("?uni")
c9(["bd:serviceParam"]):::iri
c6(["wd:Q1221156"]):::iri
c2(["wd:Q3918"]):::iri
c4(["wd:Q183"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,de,en"]):::literal
v2 --"wdt:P31"--> c2
v2 --"wdt:P17"--> c4
v2 --"wdt:P131"--> v3
v3 --"wdt:P31"--> c6
v2 --"wdt:P2196"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end
bind1[/"sum(?numberOfStudents)"/]
v4 --o bind1
bind1 --as--o v5