Question: Which movie is shorter, Antarctica (the one whose producer is Vangelis) or A Man for All Seasons (the one that has Orson Welles as a cast member)?
Choices: Talk to Her
The Towering Inferno
Pleasantville
A Prairie Home Companion
The Fifth Element
A Man for All Seasons
Antarctica
Training Day
The Hunchback of Notre Dame
Rebecca
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Antarctica" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Vangelis" .   } UNION { ?e <pred:name> "A Man for All Seasons" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Orson Welles" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Vangelis
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Antarctica
function: And
dependencies: 1
2
function: Find
inputs: Orson Welles
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: A Man for All Seasons
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
Answer: A Man for All Seasons