Question: Which movie is shorter, I Heart Huckabees or Beauty and the Beast (the one whose production company is The Cannon Group)?
Choices:
Rebecca
I Heart Huckabees
Curse of the Golden Flower
The Towering Inferno
The Fifth Element
A Prairie Home Companion
Talk to Her
Beauty and the Beast
Pleasantville
Training Day
Program:
function: Find
inputs: I Heart Huckabees
function: Find
inputs: The Cannon Group
function: Relate
dependencies: 1
inputs: production company
backward
function: Find
inputs: Beauty and the Beast
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "I Heart Huckabees" .  } UNION { ?e <pred:name> "Beauty and the Beast" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "The Cannon Group" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Beauty and the Beast