query-aa6130168b91d4c88004cb8fac3debe8
...show as a bubble chart
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#>
#defaultView:BubbleChart
SELECT ?aLabel ?a (COUNT (DISTINCT ?p) 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 ?a
ORDER BY DESC(?number)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?a"):::projected
v5("?number")
v2("?p"):::projected
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(?p)"/]
v2 --o bind1
bind1 --as--o v5