Question: Jaws 3-D or The Scarlet Letter whose distributor is Metro-Goldwyn-Mayer which one is shorter?
Choices:
Pleasantville
Rebecca
Curse of the Golden Flower
The Scarlet Letter
The Fifth Element
Jaws 3-D
A Prairie Home Companion
Talk to Her
Training Day
The Towering Inferno
Program:
function: Find
inputs: Jaws 3-D
function: Find
inputs: Metro-Goldwyn-Mayer
function: Relate
dependencies: 1
inputs: distributor
backward
function: Find
inputs: The Scarlet Letter
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jaws 3-D" .  } UNION { ?e <pred:name> "The Scarlet Letter" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Metro-Goldwyn-Mayer" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Jaws 3-D