Question: Which movie is shorter, Rise of the Planet of the Apes or Shanghai Noon?
Choices:
Rise of the Planet of the Apes
Talk to Her
Shanghai Noon
The Towering Inferno
The Fifth Element
Training Day
The Hunchback of Notre Dame
Rebecca
Pleasantville
Curse of the Golden Flower
Program:
function: Find
inputs: Rise of the Planet of the Apes
function: Find
inputs: Shanghai Noon
function: SelectBetween
dependencies: 0
1
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rise of the Planet of the Apes" .  } UNION { ?e <pred:name> "Shanghai Noon" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Rise of the Planet of the Apes