Question: Which movie is shorter, Amazing Grace (the one whose producer is Terrence Malick) or House of Flying Daggers?
Choices:
A Prairie Home Companion
The Hunchback of Notre Dame
Talk to Her
House of Flying Daggers
Training Day
Pleasantville
The Fifth Element
Amazing Grace
Curse of the Golden Flower
Rebecca
Program:
function: Find
inputs: Terrence Malick
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Amazing Grace
function: And
dependencies: 1
2
function: Find
inputs: House of Flying Daggers
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Amazing Grace" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Terrence Malick" .   } UNION { ?e <pred:name> "House of Flying Daggers" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Amazing Grace