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