Question: How many chemical compounds are a nutrient of the food whose USDA NDB number is 01059?
Choices:
22
23
24
25
26
27
28
29
30
31
Answer: 29
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "chemical compound" . ?e_1 <nutrient> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "food" . ?e_1 <USDA_NDB_number> ?pv . ?pv <pred:value> "01059" .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: USDA NDB number
01059
function: FilterConcept
dependencies: 1
inputs: food
function: Relate
dependencies: 2
inputs: nutrient
forward
function: FilterConcept
dependencies: 3
inputs: chemical compound
function: Count
dependencies: 4