Question: Which movie is shorter, Hamilton (the one whose original language is English) or The Taking of Pelham 123?
Choices:
A Prairie Home Companion
Rebecca
Curse of the Golden Flower
Pleasantville
Training Day
The Taking of Pelham 123
Talk to Her
Hamilton
The Fifth Element
The Hunchback of Notre Dame
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: original language of film or TV show
backward
function: Find
inputs: Hamilton
function: And
dependencies: 1
2
function: Find
inputs: The Taking of Pelham 123
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hamilton" . ?e <original_language_of_film_or_TV_show> ?e_1 . ?e_1 <pred:name> "English" .   } UNION { ?e <pred:name> "The Taking of Pelham 123" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Taking of Pelham 123