Question: Was the duration less for The Sting, whose composer is Marvin Hamlisch, or Inkheart?
Choices:
Training Day
Inkheart
Talk to Her
Pleasantville
Rebecca
The Towering Inferno
The Fifth Element
The Sting
The Hunchback of Notre Dame
Curse of the Golden Flower
Program:
function: Find
inputs: Inkheart
function: Find
inputs: Marvin Hamlisch
function: Relate
dependencies: 1
inputs: composer
backward
function: Find
inputs: The Sting
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Inkheart" .  } UNION { ?e <pred:name> "The Sting" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Marvin Hamlisch" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Inkheart