query-af052d7cf2753cf4bd4c7afe5a41d2ec
Municipis catalans més banyats
SELECT ?lloc ?llocLabel (COUNT(DISTINCT(?aigua)) AS ?totaigua) 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 ?lloc ?llocLabel
ORDER BY DESC(?totaigua) ?llocLabel
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#>
# Municipis catalans més banyats
SELECT ?lloc ?llocLabel (COUNT(DISTINCT(?aigua)) AS ?totaigua) 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 ?lloc ?llocLabel
ORDER BY DESC(?totaigua) ?llocLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?aigua"):::projected
v3("?lloc"):::projected
v2("?llocLabel"):::projected
v5("?totaigua")
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(?aigua)"/]
v4 --o bind1
bind1 --as--o v5