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