Question: Which movie is longer, Blood Diamond or Lady in the Water?
Choices:
Pleasantville
The Hunchback of Notre Dame
Rebecca
Talk to Her
Blood Diamond
Curse of the Golden Flower
Training Day
The Fifth Element
Lady in the Water
A Prairie Home Companion
Program:
function: Find
inputs: Blood Diamond
function: Find
inputs: Lady in the Water
function: SelectBetween
dependencies: 0
1
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Blood Diamond" .  } UNION { ?e <pred:name> "Lady in the Water" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Blood Diamond