Question: Which one, Footloose (the one that has Dianne Wiest as a cast member) or The Man Who Wasn't There (the one that has Billy Bob Thornton as a cast member), has less duration?
Choices: The Fifth Element
Curse of the Golden Flower
Training Day
Rebecca
A Prairie Home Companion
The Towering Inferno
The Man Who Wasn't There
Talk to Her
Footloose
The Hunchback of Notre Dame
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Footloose" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Dianne Wiest" .   } UNION { ?e <pred:name> "The Man Who Wasn't There" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Billy Bob Thornton" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Dianne Wiest
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Footloose
function: And
dependencies: 1
2
function: Find
inputs: Billy Bob Thornton
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: The Man Who Wasn't There
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
Answer: Footloose