query-fb5bc5219ac68042f2381a00e7d1511b

rq turtle/ttl

SPARQL query

Use at

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/>
SELECT ?wikidata WHERE {
   ?wikidata p:P39 ?mem .
   ?mem ps:P39 wd:Q33512801.
   FILTER NOT EXISTS { ?mem pq:P582 ?endDate. }
 }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?endDate") v1("?mem") v3("?wikidata"):::projected c4(["wd:Q33512801"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"p:qualifier/P582"--> e0v2 e0v2("?endDate"):::projected e0v1("?mem"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> v2 v1 --"p:qualifier/P582"--> v2 v3 --"p:P39"--> v1 v1 --"p:statement/P39"--> c4