Question: Which movie is shorter, Titanic (the one whose genre is propaganda film) or For Your Consideration?
Choices:
For Your Consideration
Titanic
Curse of the Golden Flower
Pleasantville
The Towering Inferno
The Fifth Element
Training Day
Talk to Her
The Hunchback of Notre Dame
Rebecca
Program:
function: Find
inputs: propaganda film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Titanic
function: And
dependencies: 1
2
function: Find
inputs: For Your Consideration
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Titanic" . ?e <genre> ?e_1 . ?e_1 <pred:name> "propaganda film" .   } UNION { ?e <pred:name> "For Your Consideration" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Titanic