query-88726afbd6885b463647c9ebd02e2397

rq turtle/ttl

title: English Works that have an "edition of" but that edition doesn't refer back SELECT ?work ?workLabel ?edition ?editionLabel WHERE { ?work wdt:P747 ?edition . hint:Prior hint:runFirst true. ?work wdt:P407 wd:Q1860 . ?work wdt:P31/wdt:P279* wd:Q17537576 . # instance of creative work or any subclass hint:Prior hint:gearing "forward". MINUS { ?edition wdt:P629 [] } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],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 bd: <http://www.bigdata.com/rdf#>
#title: English Works that have an "edition of" but that edition doesn't refer back
SELECT ?work ?workLabel ?edition ?editionLabel WHERE {
  ?work wdt:P747 ?edition .

  ?work wdt:P407 wd:Q1860 .
  ?work wdt:P31/wdt:P279* wd:Q17537576 .  # instance of creative work or any subclass

  MINUS { ?edition wdt:P629 [] }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?edition"):::projected v1("?work"):::projected a2((" ")) a1((" ")) c9(["bd:serviceParam"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal c6(["wd:Q17537576"]):::iri c3(["wd:Q1860"]):::iri v1 --"wdt:P747"--> v2 v1 --"wdt:P407"--> c3 v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c6 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P629"--> a2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end