query-180d90da267ff05e2a375ba0c614db29
Give me the classes of NFDI associated organisations and their number!
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(DISTINCT ?w) as ?number)
WHERE
{
{
?w wdt:P463 wd:Q105757481 .
} UNION {
?p wdt:P31 wd:Q98270496 .
?p wdt:P1416 ?w .
}
?w wdt:P31 ?aggregate .
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;
v4("?aggregate"):::projected
v5("?number")
v3("?p")
v2("?w"):::projected
c7(["bd:serviceParam"]):::iri
c2(["wd:Q105757481"]):::iri
c9(["de,en"]):::literal
c4(["wd:Q98270496"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P31"--> c4
v3 --"wdt:P1416"--> v2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P463"--> c2
end
union0r <== or ==> union0l
end
v2 --"wdt:P31"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind1[/"count(?w)"/]
v2 --o bind1
bind1 --as--o v5