Question: Which movie is longer, The Merry Widow (the one that origins from France) or Bulworth?
Choices:
The Merry Widow
Pleasantville
Rebecca
Training Day
Talk to Her
The Fifth Element
The Hunchback of Notre Dame
Bulworth
Curse of the Golden Flower
The Towering Inferno
Program:
function: Find
inputs: France
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: The Merry Widow
function: And
dependencies: 1
2
function: Find
inputs: Bulworth
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Merry Widow" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "France" .   } UNION { ?e <pred:name> "Bulworth" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Bulworth