query-f9d6a1de36701f51f3f8809db30542a9

rq turtle/ttl

Chemical compound without PubChem CID

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?compound WHERE {
  ?compound wdt:P31 wd:Q11173
  OPTIONAL {?compound wdt:P662 ?d }
  FILTER (!bound(?d))
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?compound"):::projected v1("?d") c2(["wd:Q11173"]):::iri f0[["not bound(?d)"]] f0 --> v1 v2 --"wdt:P31"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P662".-> v1 end