query-517932a53d1d6d5e1633920203eca57c
Folding matches. (P131)located in the administrative territorial entity can have multiple values. The query results in that case to multiple matches, one for each (P131)located in the administrative territorial entity Hi, I have the following query looking for mountains in Austria without an image (roughly). For borderline mountains,
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 DISTINCT ?_s ?_sLabel ?_sDescription ?woLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?_s wdt:P17 wd:Q40.
?_s wdt:P131*/wdt:P279* wd:Q40.
?_s wdt:P31 wd:Q8502.
?_s wdt:P625 [].
?_s wdt:P131 ?wo
MINUS
{
?_s wdt:P18 []
}
MINUS
{
?_s wdt:P373 []
}
}
ORDER BY ASC(?_sLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?_s"):::projected
v1("?_sLabel"):::projected
v3("?wo")
a2((" "))
a3((" "))
a4((" "))
a1((" "))
c6(["wd:Q40"]):::iri
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c10(["wd:Q8502"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v2 --"wdt:P17"--> c6
v2 --"wdt:P131"--> a1
a1 --"wdt:P279"--> c6
v2 --"wdt:P31"--> c10
v2 --"wdt:P625"--> a2
v2 --"wdt:P131"--> v3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P18"--> a3
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P373"--> a4
end