Question: Which film has the shorter running time, Elizabeth (in which Daniel Craig is a cast member) or Do the Right Thing?
Choices:
The Hunchback of Notre Dame
Do the Right Thing
Curse of the Golden Flower
Elizabeth
The Towering Inferno
Training Day
A Prairie Home Companion
Talk to Her
The Fifth Element
Rebecca
Program:
function: Find
inputs: Daniel Craig
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Elizabeth
function: And
dependencies: 1
2
function: Find
inputs: Do the Right Thing
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Elizabeth" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Daniel Craig" .   } UNION { ?e <pred:name> "Do the Right Thing" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Do the Right Thing