query-b142d88f9b31865f8d0554f84cc1f269
TODO
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 ?item ?itemLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nn,en". }
{
SELECT DISTINCT ?item WHERE {
?item wdt:P17 wd:Q20.
?item wdt:P31/wdt:P279* wd:Q1190554.
MINUS {
?item wdt:P31/wdt:P279* wd:Q1656682.
}
}
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
a1((" "))
a2((" "))
c2(["bd:serviceParam"]):::iri
c6(["wd:Q20"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,nn,en"]):::literal
c9(["wd:Q1190554"]):::iri
c10(["wd:Q1656682"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P17"--> c6
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c9
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c10
end