query-ae7edead12b0164b4da21cc770b4e3d8

rq turtle/ttl

UNION of instance of: chemical compound (Q11173), CAS number

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT * WHERE {
  ?compound wdt:P31 wd:Q11173 ;
            wdt:P231 ?cas
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?cas"):::projected v1("?compound"):::projected c2(["wd:Q11173"]):::iri v1 --"wdt:P31"--> c2 v1 --"wdt:P231"--> v2