Question: Which movie is shorter, Gettysburg which was in English, or The Island, which was set in the Carribean?
Choices:
The Hunchback of Notre Dame
Gettysburg
Pleasantville
Rebecca
Talk to Her
Training Day
The Island
The Towering Inferno
Curse of the Golden Flower
The Fifth Element
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: original language of film or TV show
backward
function: Find
inputs: Gettysburg
function: And
dependencies: 1
2
function: Find
inputs: Caribbean
function: Relate
dependencies: 4
inputs: narrative location
backward
function: Find
inputs: The Island
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Gettysburg" . ?e <original_language_of_film_or_TV_show> ?e_1 . ?e_1 <pred:name> "English" .   } UNION { ?e <pred:name> "The Island" . ?e <narrative_location> ?e_2 . ?e_2 <pred:name> "Caribbean" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Island