Question: Which movie is shorter, Anchorman: The Legend of Ron Burgundy or The Killers (the one that has Burt Lancaster as a cast member)?
Choices:
Anchorman: The Legend of Ron Burgundy
Training Day
Pleasantville
The Hunchback of Notre Dame
Rebecca
Curse of the Golden Flower
Talk to Her
A Prairie Home Companion
The Fifth Element
The Killers
Program:
function: Find
inputs: Anchorman: The Legend of Ron Burgundy
function: Find
inputs: Burt Lancaster
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: The Killers
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Anchorman: The Legend of Ron Burgundy" .  } UNION { ?e <pred:name> "The Killers" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Burt Lancaster" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Anchorman: The Legend of Ron Burgundy