Question: Which of the chemical elements that is a nutrient of tomato has the largest mass?
Choices:
magnesium
selenium
Fantastic Four
calcium
manganese
Abraham Lincoln
sodium
The Lord of the Rings: The Fellowship of the Ring
phosphorus
zinc
Program:
function: Find
inputs: tomato
function: Relate
dependencies: 0
inputs: nutrient
forward
function: FilterConcept
dependencies: 1
inputs: chemical element
function: SelectAmong
dependencies: 2
inputs: mass
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "chemical element" . ?e_1 <nutrient> ?e . ?e_1 <pred:name> "tomato" .  ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: selenium