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