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