Question: Which movie is shorter, The Greatest Show on Earth or Ip Man (the one that wins Hong Kong Film Award for Best Film)?
Choices:
Curse of the Golden Flower
The Towering Inferno
The Fifth Element
The Hunchback of Notre Dame
Training Day
Rebecca
A Prairie Home Companion
Ip Man
The Greatest Show on Earth
Pleasantville
Program:
function: Find
inputs: The Greatest Show on Earth
function: Find
inputs: Hong Kong Film Award for Best Film
function: Relate
dependencies: 1
inputs: winner
forward
function: Find
inputs: Ip Man
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Greatest Show on Earth" .  } UNION { ?e <pred:name> "Ip Man" . ?e_1 <winner> ?e . ?e_1 <pred:name> "Hong Kong Film Award for Best Film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Ip Man