query-e422fa9e5b766e9a10ad91d2df533763
Coses que banyen més municipis catalans
SELECT ?aigua ?aiguaLabel (COUNT(DISTINCT(?lloc)) AS ?totllocs) WHERE {
?lloc wdt:P31 wd:Q33146843.
?lloc wdt:P206 ?aigua .
SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca,en,es,fr".}
}
GROUP BY ?aigua ?aiguaLabel
ORDER BY DESC(?totllocs) ?aiguaLabel
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#>
# Coses que banyen més municipis catalans
SELECT ?aigua ?aiguaLabel (COUNT(DISTINCT(?lloc)) AS ?totllocs) WHERE {
?lloc wdt:P31 wd:Q33146843.
?lloc wdt:P206 ?aigua .
SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca,en,es,fr".}
}
GROUP BY ?aigua ?aiguaLabel
ORDER BY DESC(?totllocs) ?aiguaLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?aigua"):::projected
v2("?aiguaLabel"):::projected
v3("?lloc"):::projected
v5("?totllocs")
c5(["bd:serviceParam"]):::iri
c2(["wd:Q33146843"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,ca,en,es,fr"]):::literal
v3 --"wdt:P31"--> c2
v3 --"wdt:P206"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind1[/"count(?lloc)"/]
v3 --o bind1
bind1 --as--o v5