Question: Which movie is shorter, Swept Away or Night at the Museum: Battle of the Smithsonian (the one that has Ed Helms as a cast member)?
Choices:
A Prairie Home Companion
The Fifth Element
Rebecca
Night at the Museum: Battle of the Smithsonian
The Hunchback of Notre Dame
The Towering Inferno
Training Day
Pleasantville
Talk to Her
Swept Away
Program:
function: Find
inputs: Swept Away
function: Find
inputs: Ed Helms
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Night at the Museum: Battle of the Smithsonian
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Swept Away" .  } UNION { ?e <pred:name> "Night at the Museum: Battle of the Smithsonian" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Ed Helms" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Swept Away