Question: How many medications are a nutrient of Capsicum or have a melting point less than 1900 kelvin?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "medication" .  { ?e_1 <nutrient> ?e . ?e_1 <pred:name> "Capsicum" .  } UNION { ?e <melting_point> ?pv . ?pv <pred:unit> "kelvin" . ?pv <pred:value> ?v . FILTER ( ?v < "1900"^^xsd:double ) .  } }
Program:
function: Find
inputs: Capsicum
function: Relate
dependencies: 0
inputs: nutrient
forward
function: FilterConcept
dependencies: 1
inputs: medication
function: FindAll
function: FilterNum
dependencies: 3
inputs: melting point
1900 kelvin
<
function: FilterConcept
dependencies: 4
inputs: medication
function: Or
dependencies: 2
5
function: Count
dependencies: 6