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