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