query-22fd1bd03b2449377b984baef7acd0c1
Caves with more than one coordinates
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 ?item ?itemLabel ?itemDescription ?count WHERE{
{
SELECT ?item (COUNT(DISTINCT ?coordinate_location) AS ?count) WHERE {
?item wdt:P31/wdt:P279* wd:Q35509.
?item wdt:P625 ?coordinate_location.
FILTER NOT EXISTS { ?coordinate_location wdt:P576 ?end }
}
GROUP BY ?item
}
FILTER ( ?count > 1 )
SERVICE wikibase:label { bd:serviceParam wikibase:language "en, bg". }
}
ORDER BY DESC(?count) ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?coordinate_location")
v6("?count"):::projected
v4("?end")
v5("?item"):::projected
v2("?itemLabel"):::projected
a1((" "))
c8(["bd:serviceParam"]):::iri
c5(["wd:Q35509"]):::iri
c10(["en, bg"]):::literal
f0[["?count > '1^^xsd:integer'"]]
f0 --> v6
f1[["not "]]
subgraph f1e0["Exists Clause"]
e0v1 --"wdt:P576"--> e0v2
e0v1("?coordinate_location"):::projected
e0v2("?end"):::projected
end
f1--EXISTS--> f1e0
f1 --> v3
f1 --> c2
f1 --> v4
v3 --"wdt:P576"--> v4
v5 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
v5 --"wdt:P625"--> v3
bind3[/"count(?coordinate_location)"/]
v3 --o bind3
bind3 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end