query-3e292a4746c6a297daa5e2f4a771d03d
has Q38 and Q172579 with no pq:P580 on the Q172579 SELECT ?human ?humanLabel WHERE { ?human wdt:P31 wd:Q5; p:P27 ?statement. ?statement ps:P27 wd:Q172579. filter not exists {?statement pq:P580 ?start.} ?human wdt:P27 wd:Q38. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,en". } }
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# has Q38 and Q172579 with no pq:P580 on the Q172579
SELECT ?human ?humanLabel WHERE {
?human wdt:P31 wd:Q5;
p:P27 ?statement.
?statement ps:P27 wd:Q172579.
filter not exists {?statement pq:P580 ?start.}
?human wdt:P27 wd:Q38.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?human"):::projected
v2("?start")
v1("?statement")
c8(["wd:Q38"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,it,en"]):::literal
c10(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c6(["wd:Q172579"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:qualifier/P580"--> e0v2
e0v2("?start"):::projected
e0v1("?statement"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"p:qualifier/P580"--> v2
v3 --"p:direct/P31"--> c3
v3 --"p:P27"--> v1
v1 --"p:statement/P27"--> c6
v3 --"p:direct/P27"--> c8
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end