Question: Which movie is shorter, A Better Tomorrow (the one that has John Woo as a cast member) or Oliver!?
Choices:
Rebecca
The Towering Inferno
Training Day
A Better Tomorrow
Curse of the Golden Flower
A Prairie Home Companion
The Hunchback of Notre Dame
Oliver!
Talk to Her
The Fifth Element
Program:
function: Find
inputs: John Woo
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: A Better Tomorrow
function: And
dependencies: 1
2
function: Find
inputs: Oliver!
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "A Better Tomorrow" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "John Woo" .   } UNION { ?e <pred:name> "Oliver!" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: A Better Tomorrow