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