Question: How many chemical elements have the canonical SMILES, [Zn], or are a cheese nutrient?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: canonical SMILES
[Zn]
function: FilterConcept
dependencies: 1
inputs: chemical element
function: Find
inputs: cheese
function: Relate
dependencies: 3
inputs: nutrient
forward
function: FilterConcept
dependencies: 4
inputs: chemical element
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "chemical element" .  { ?e <canonical_SMILES> ?pv . ?pv <pred:value> "[Zn]" .  } UNION { ?e_1 <nutrient> ?e . ?e_1 <pred:name> "cheese" .  } }
Answer: 7