query-7cb4d67ea021d42ae969a7ca2318d09e

rq turtle/ttl

has Q38 and Q172579 with no pq:P580 on the Q38 SELECT ?human ?humanLabel WHERE { ?human wdt:P31 wd:Q5; p:P27 ?statement. ?statement ps:P27 wd:Q38. filter not exists {?statement pq:P580 ?start.} ?human wdt:P27 wd:Q172579. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,en". } }

Use at

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 Q38 
  SELECT ?human ?humanLabel WHERE {
  ?human wdt:P31 wd:Q5;
           p:P27 ?statement.
  ?statement ps:P27 wd:Q38.
  filter not exists {?statement pq:P580 ?start.}
  ?human wdt:P27 wd:Q172579.
  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") c6(["wd:Q38"]):::iri c12(["#91;AUTO_LANGUAGE#93;,it,en"]):::literal c10(["bd:serviceParam"]):::iri c3(["wd:Q5"]):::iri c8(["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