Question: Which movie is shorter, Evolution (the one that has David Duchovny as a cast member) or Edge of Darkness (the one whose narrative location is Boston)?
Choices:
Talk to Her
The Fifth Element
Training Day
The Towering Inferno
Curse of the Golden Flower
Edge of Darkness
Evolution
The Hunchback of Notre Dame
Rebecca
Pleasantville
Answer: Evolution
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Evolution" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "David Duchovny" .   } UNION { ?e <pred:name> "Edge of Darkness" . ?e <narrative_location> ?e_2 . ?e_2 <pred:name> "Boston" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: David Duchovny
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Evolution
function: And
dependencies: 1
2
function: Find
inputs: Boston
function: Relate
dependencies: 4
inputs: narrative location
backward
function: Find
inputs: Edge of Darkness
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less