query-8a999b00de11f9ffc500757c38e700e2
Welche Städte haben 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(DISTINCT(?p)) AS ?number)
WHERE
{
?p wdt:P31 wd:Q98270496 .
?p wdt:P1416 ?w .
?w wdt:P131* ?a .
?a wdt:P31/wdt:P279* wd:Q515 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "de" . }
} GROUP BY ?a ?aLabel
ORDER BY DESC(?number) ASC(?aLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?a")
v2("?aLabel"):::projected
v6("?number")
v3("?p"):::projected
v4("?w")
a1((" "))
c10(["de"]):::literal
c8(["bd:serviceParam"]):::iri
c6(["wd:Q515"]):::iri
c2(["wd:Q98270496"]):::iri
v3 --"wdt:P31"--> c2
v3 --"wdt:P1416"--> v4
v4 --"wdt:P131"--> v5
v5 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind1[/"count(?p)"/]
v3 --o bind1
bind1 --as--o v6