query-215f1fb5d3b310247e5f94b3c45bface
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 {
?item wdt:P31/wdt:P279* wd:Q3624078.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
MINUS {?item wdt:P576 [].}
MINUS {
?item wdt:P31/wdt:P279* ?without.
VALUES ?without {
wd:Q133311 # tribes
wd:Q13417114 # houses
}
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v3("?without")
a2((" "))
a1((" "))
a3((" "))
c3(["wd:Q3624078"]):::iri
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P576"--> a2
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> a3
a3 --"wdt:P279"--> v3
bind2[/VALUES ?without/]
bind2-->v3
bind20(["wd:Q133311"])
bind20 --> bind2
bind21(["wd:Q13417114"])
bind21 --> bind2
end