query-ad8a7d8946af13270c69a916b5bbe08e
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT * WHERE {
?human wdt:P31 wd:Q5 ; wdt:P9106 ?somevalue .
#the following line restrict it to Qid with Roman citizenship
?human wdt:P27 wd:Q1747689 .
FILTER ( NOT EXISTS { ?human wdt:P1343 wd:Q1138524 } )
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?human"):::projected
v2("?somevalue"):::projected
c4(["wd:Q5"]):::iri
c2(["wd:Q1138524"]):::iri
c7(["wd:Q1747689"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P1343"--> e0c2
e0v1("?human"):::projected
e0c2(["wd:Q1138524"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> c2
v1 --"wdt:P1343"--> c2
v1 --"wdt:P31"--> c4
v1 --"wdt:P9106"--> v2
v1 --"wdt:P27"--> c7