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