query-6821c825589ddfcd38cf52554b92bd4a
All rivers in morocco without P403 SELECT DISTINCT ?river ?riverLabel WHERE { ?river wdt:P17 wd:Q1028; wdt:P31/wdt:P279* wd:Q355304. MINUS { ?river wdt:P403 ?mündung. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr". } }
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#>
# All rivers in morocco without P403
SELECT DISTINCT ?river ?riverLabel WHERE {
?river wdt:P17 wd:Q1028;
wdt:P31/wdt:P279* wd:Q355304.
MINUS { ?river wdt:P403 ?mündung. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?mündung")
v1("?river"):::projected
a1((" "))
c2(["wd:Q1028"]):::iri
c5(["wd:Q355304"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en,fr"]):::literal
v1 --"wdt:P17"--> c2
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P403"--> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end