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