query-8fa658033a0559c2e36c962c20a94353

rq turtle/ttl

ICD-9 ID (P493) without health specialty (P1995): (P1995)health specialty but not with (P493)ICD-9 ID Interesting that over 3K items are marked with

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item WHERE {
  ?item wdt:P493 [] .
  OPTIONAL { ?item wdt:P1995 ?dummy0 }
  FILTER(!bound(?dummy0))
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?dummy0") v2("?item"):::projected a1((" ")) f0[["not bound(?dummy0)"]] f0 --> v1 v2 --"wdt:P493"--> a1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P1995".-> v1 end