Question: Which has the largest density among the medications that are a nutrient of apple?
Choices:
antibiotic
prescription drug
Egypt
iron
analgesic
copper
Hiroshima Prefecture
Hamlet
over-the-counter drug
Bible
Program:
function: Find
inputs: apple
function: Relate
dependencies: 0
inputs: nutrient
forward
function: FilterConcept
dependencies: 1
inputs: medication
function: SelectAmong
dependencies: 2
inputs: density
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "medication" . ?e_1 <nutrient> ?e . ?e_1 <pred:name> "apple" .  ?e <density> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: copper