query-c23cf830e034a5e75798504db7a68637
Show media possible reachHello! I have built a query with items operating area, and want to show it in a bubble chart... but I want to add the results of different operating areas in the same item. For example, if somethingis operationg in Germany and Sweden, I don't want to show it twice, but with both populations aggregated. I'm doing something wrong:
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 ?KomLabel ?q WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?Kom wdt:P31 wd:Q340169.
?Kom wdt:P407 wd:Q8752.
?Kom wdt:P2541 ?op.
?op wdt:P1082 ?q.
}
GROUP by ?KomLabel