query-dfdfbcfc42302db5881614724fbe900a

rq turtle/ttl

copyright status

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item  WHERE {
 ?item wdt:P170 wd:Q381238 .  
 MINUS{ ?item wdt:P31 wd:Q3658341 .}
 #minus{ ?item wdt:P6216 wd:Q19652 }. 

 ?item p:P6216 ?statement .
 FILTER NOT EXISTS { ?statement pq:P1001 [] } # exclude if P1001 present
 #FILTER NOT EXISTS { ?statement pq:P459  [] } # exclude if P459  present

}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v1("?statement") a1((" ")) c5(["wd:Q3658341"]):::iri c3(["wd:Q381238"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"p:qualifier/P1001"--> e0a1 e0v1("?statement"):::projected e0a1((" ")):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> a1 v1 --"p:qualifier/P1001"--> a1 v2 --"p:direct/P170"--> c3 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v2 --"p:direct/P31"--> c5 end v2 --"p:P6216"--> v1