Question: Between The Nutty Professor, with composer Walter Scharf, or Napoleon Dynamite, which is shorter in duration?
Choices:
Talk to Her
Training Day
Rebecca
The Nutty Professor
The Fifth Element
Napoleon Dynamite
Curse of the Golden Flower
Pleasantville
A Prairie Home Companion
The Towering Inferno
Program:
function: Find
inputs: Walter Scharf
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: The Nutty Professor
function: And
dependencies: 1
2
function: Find
inputs: Napoleon Dynamite
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Nutty Professor" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Walter Scharf" .   } UNION { ?e <pred:name> "Napoleon Dynamite" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Napoleon Dynamite