query-8bb5030323ab1eaf9fc1fe79f7f499bb

rq turtle/ttl

ButMoth WiP

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?item ?islep WHERE {
  ?item wdt:P171* wd:Q7674891.
  ?item  p:P3060 [].
  bind(if( exists { ?item wdt:P171+  wd:Q28319}, true, false) AS ?islep)
  filter not exists { ?item wdt:P171+  wd:Q28319}
}
limit 10

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?islep"):::projected v1("?item"):::projected a1((" ")) c3(["wd:Q7674891"]):::iri c2(["wd:Q28319"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"p:direct/P171"--> e0c2 e0v1("?item"):::projected e0c2(["wd:Q28319"]):::iri end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> c2 v1 --"p:direct/P171"--> c2 v1 --"p:direct/P171"--> c3 v1 --"p:P3060"--> a1 v1 --"p:direct/P171"--> c2 bind1[/"if( ,'true^^xsd:boolean','false^^xsd:boolean')"/] subgraph bind1e1["Exists Clause"] e1v1 --"p:direct/P171"--> e1c2 e1v1("?item"):::projected e1c2(["wd:Q28319"]):::iri end bind1--EXISTS--> bind1e1 v1 --o bind1 c1 --o bind1 c2 --o bind1 bind1 --as--o v2