Question: Which movie is shorter, Diamonds Are Forever (the one whose genre is spy film) or Mission: Impossible III?
Choices:
Diamonds Are Forever
Mission: Impossible III
Training Day
A Prairie Home Companion
Curse of the Golden Flower
Pleasantville
The Hunchback of Notre Dame
Talk to Her
The Fifth Element
The Towering Inferno
Answer: Diamonds Are Forever
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Diamonds Are Forever" . ?e <genre> ?e_1 . ?e_1 <pred:name> "spy film" .   } UNION { ?e <pred:name> "Mission: Impossible III" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: spy film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Diamonds Are Forever
function: And
dependencies: 1
2
function: Find
inputs: Mission: Impossible III
function: SelectBetween
dependencies: 3
4
inputs: duration
less