Question: Tell me the number of foods that have a nutrient of L-Tryptophan or Allium cepa.
Choices: 9
10
11
12
13
14
15
16
17
18
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "food" .  { ?e_1 <nutrient> ?e . ?e_1 <pred:name> "Allium cepa" .  } UNION { ?e <nutrient> ?e_1 . ?e_1 <pred:name> "L-Tryptophan" .  } }
Program:
function: Find
inputs: Allium cepa
function: Relate
dependencies: 0
inputs: nutrient
forward
function: FilterConcept
dependencies: 1
inputs: food
function: Find
inputs: L-Tryptophan
function: Relate
dependencies: 3
inputs: nutrient
backward
function: FilterConcept
dependencies: 4
inputs: food
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 9