Question: Which is shorter in duration, Get Shorty which has David Paymer as a cast member, or I'm Not There?
Choices:
The Towering Inferno
Talk to Her
Curse of the Golden Flower
Training Day
I'm Not There
A Prairie Home Companion
Get Shorty
Pleasantville
The Fifth Element
The Hunchback of Notre Dame
Program:
function: Find
inputs: David Paymer
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Get Shorty
function: And
dependencies: 1
2
function: Find
inputs: I'm Not There
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Get Shorty" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "David Paymer" .   } UNION { ?e <pred:name> "I'm Not There" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Get Shorty