query-72b0fabefc7ebed1cdadeef5b83d87a1

rq turtle/ttl

Gib mir alle Mitgliedersorganisationen der Allianz-Initiative und die Anzahl ihrer Mitglieder!

Use at

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 ?verbund ?verbundLabel (count(DISTINCT ?organisation) AS ?mitgliederzahl)
WHERE 
{
  ?verbund wdt:P463 wd:Q1783362 .
  {
    {?organisation wdt:P137* ?verbund} 
    UNION {?organisation wdt:P463+ ?verbund}
  }
  ?organisation wdt:P31/wdt:P279* wd:Q43229 .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de" . }
} GROUP BY ?verbund ?verbundLabel
ORDER BY DESC(?mitgliederzahl) ASC(?verbundLabel)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?mitgliederzahl") v4("?organisation"):::projected v3("?verbund"):::projected v2("?verbundLabel"):::projected a1((" ")) c10(["de"]):::literal c8(["bd:serviceParam"]):::iri c2(["wd:Q1783362"]):::iri c6(["wd:Q43229"]):::iri v3 --"wdt:P463"--> c2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v4 --"wdt:P463"--> v3 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v4 --"wdt:P137"--> v3 end union0r <== or ==> union0l end v4 --"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(?organisation)"/] v4 --o bind1 bind1 --as--o v5