Question: Which movie is longer, The Impossible or Eragon (the one that is shot in British Columbia)?
Choices:
Training Day
Rebecca
The Hunchback of Notre Dame
Pleasantville
The Towering Inferno
Eragon
The Impossible
A Prairie Home Companion
The Fifth Element
Talk to Her
Program:
function: Find
inputs: The Impossible
function: Find
inputs: British Columbia
function: Relate
dependencies: 1
inputs: filming location
backward
function: Find
inputs: Eragon
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Impossible" .  } UNION { ?e <pred:name> "Eragon" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "British Columbia" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Impossible