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