Question: How many medications whose InChIKey is RYGMFSIKBFXOCR-UHFFFAOYSA-N or that is a nutrient of carrot?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "medication" .  { ?e <InChIKey> ?pv . ?pv <pred:value> "RYGMFSIKBFXOCR-UHFFFAOYSA-N" .  } UNION { ?e_1 <nutrient> ?e . ?e_1 <pred:name> "carrot" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: InChIKey
RYGMFSIKBFXOCR-UHFFFAOYSA-N
function: FilterConcept
dependencies: 1
inputs: medication
function: Find
inputs: carrot
function: Relate
dependencies: 3
inputs: nutrient
forward
function: FilterConcept
dependencies: 4
inputs: medication
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2