query-6c2427da4d1105d5bb86ef92f31cb413
Give me all members of members of NFDI, ordered by number of members!
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 ?aggregate ?aggregateLabel (count(?w) as ?number)
WHERE
{
?w wdt:P463 wd:Q105757481 .
?w ^wdt:P463 ?aggregate .
FILTER NOT EXISTS {?aggregate wdt:P31 wd:Q5}
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en" . }
} GROUP BY ?aggregate ?aggregateLabel
ORDER BY DESC(?number)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?aggregate"):::projected
v4("?number")
v3("?w"):::projected
c6(["bd:serviceParam"]):::iri
c4(["wd:Q105757481"]):::iri
c2(["wd:Q5"]):::iri
c8(["de,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P31"--> e0c2
e0v1("?aggregate"):::projected
e0c2(["wd:Q5"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> c2
v2 --"wdt:P31"--> c2
v3 --"wdt:P463"--> c4
v2 --"wdt:P463"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind2[/"count(?w)"/]
v3 --o bind2
bind2 --as--o v4