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