query-8f4350880e996df8645e534c853af72f
Aus welchen Bundesländern stammen die meisten Konsortialbeteiligungen?
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 ?aLabel (COUNT(*) AS ?number)
WHERE {
{
SELECT ?a ?w ?p
WHERE {
?p wdt:P31 wd:Q98270496 .
?p wdt:P1416 ?w .
OPTIONAL {
?w wdt:P131+ ?a .
?a wdt:P31 wd:Q1221156 .
}
}
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "de" . }
} GROUP BY (?aLabel)
ORDER BY DESC(?number)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?a")
v5("?number")
v2("?p")
v3("?w")
c9(["de"]):::literal
c7(["bd:serviceParam"]):::iri
c5(["wd:Q1221156"]):::iri
c2(["wd:Q98270496"]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P1416"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P131".-> v4
v4 --"wdt:P31"--> c5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind1[/"count(*)"/]
bind1 --as--o v5