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