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