Question: Which movie has a shorter runtime, Beauty and the Beast (the one whose producer is Yoram Globus) or Montana (the one that has Philip Seymour Hoffman as a cast member)?
Choices:
Training Day
Pleasantville
Rebecca
The Hunchback of Notre Dame
Montana
A Prairie Home Companion
Beauty and the Beast
Curse of the Golden Flower
Talk to Her
The Towering Inferno
Program:
function: Find
inputs: Yoram Globus
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Beauty and the Beast
function: And
dependencies: 1
2
function: Find
inputs: Philip Seymour Hoffman
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Montana
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Beauty and the Beast" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Yoram Globus" .   } UNION { ?e <pred:name> "Montana" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Philip Seymour Hoffman" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Beauty and the Beast