Question: How many foods have the USDA NDB number 01077 or are a nutrient of apples?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: USDA NDB number
01077
function: FilterConcept
dependencies: 1
inputs: food
function: Find
inputs: apple
function: Relate
dependencies: 3
inputs: nutrient
forward
function: FilterConcept
dependencies: 4
inputs: food
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> "food" .  { ?e <USDA_NDB_number> ?pv . ?pv <pred:value> "01077" .  } UNION { ?e_1 <nutrient> ?e . ?e_1 <pred:name> "apple" .  } }
Answer: 3