query-7e2d13994102c85c5d87fbc5db355ae9
wieviele berge pro range
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 schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?range ?range_label ?highpoint ?highpoint_label ?desc_label_en ?desc_label_de (COUNT(DISTINCT ?item) AS ?count)
WHERE
{
?item wdt:P131+ wd:Q1205.
?item wdt:P31/wdt:P279* wd:Q106589819.
?item wdt:P4552 ?range
SERVICE wikibase:label { bd:serviceParam wikibase:language "en".
?range rdfs:label ?range_label.
?range schema:description ?desc_label_en .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "de".
?range schema:description ?desc_label_de .
?highpoint rdfs:label ?highpoint_label
}
OPTIONAL { ?range wdt:P610 ?highpoint . }
}
GROUP BY ?range ?range_label ?highpoint ?highpoint_label ?desc_label_en ?desc_label_de
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v9("?count")
v6("?desc_label_de"):::projected
v5("?desc_label_en"):::projected
v7("?highpoint"):::projected
v8("?highpoint_label"):::projected
v2("?item"):::projected
v3("?range"):::projected
v4("?range_label"):::projected
a1((" "))
c2(["wd:Q1205"]):::iri
c13(["de"]):::literal
c10(["en"]):::literal
c8(["bd:serviceParam"]):::iri
c5(["wd:Q106589819"]):::iri
v2 --"wdt:P131"--> c2
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
v2 --"wdt:P4552"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
v3 --"rdfs:label"--> v4
v3 --"schema:description"--> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c13
v3 --"schema:description"--> v6
v7 --"rdfs:label"--> v8
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P610".-> v7
end
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v9