Question: What is the written work that is a nutrient of sucrose and a nutrient of apple?
Choices:
carbohydrate
The Hours
Starship Troopers
Contact
riboflavin
sugar
iron
properties of water
Live and Let Die
The Painted Veil
Program:
function: Find
inputs: sucrose
function: Relate
dependencies: 0
inputs: nutrient
forward
function: FilterConcept
dependencies: 1
inputs: written work
function: Find
inputs: apple
function: Relate
dependencies: 3
inputs: nutrient
forward
function: FilterConcept
dependencies: 4
inputs: written work
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "written work" . ?e_1 <nutrient> ?e . ?e_1 <pred:name> "sucrose" .  ?e_2 <nutrient> ?e . ?e_2 <pred:name> "apple" .  }
Answer: carbohydrate