Question: Which movie is shorter, King of the Hill (the one whose genre is drama film) or Into the West (the one whose distributor is Miramax)?
Choices: Rebecca
The Towering Inferno
Talk to Her
Into the West
Training Day
Curse of the Golden Flower
King of the Hill
The Hunchback of Notre Dame
A Prairie Home Companion
The Fifth Element
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "King of the Hill" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" .   } UNION { ?e <pred:name> "Into the West" . ?e <distributor> ?e_2 . ?e_2 <pred:name> "Miramax" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: drama film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: King of the Hill
function: And
dependencies: 1
2
function: Find
inputs: Miramax
function: Relate
dependencies: 4
inputs: distributor
backward
function: Find
inputs: Into the West
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
Answer: Into the West