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