query-11b79cacdf56573bfe644ffe11a63115
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?compound WHERE {
?compound wdt:P31 wd:Q11173 ;
wdt:P662 ?pubchemcid
OPTIONAL {?compound wdt:P235 ?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")
v3("?pubchemcid")
c2(["wd:Q11173"]):::iri
f0[["not bound(?d)"]]
f0 --> v1
v2 --"wdt:P31"--> c2
v2 --"wdt:P662"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P235".-> v1
end