Question: Between The Lovely Bones or Detroit, directed by Kathryn Bigelow, which is shorter?
Choices:
The Fifth Element
Talk to Her
Detroit
Curse of the Golden Flower
A Prairie Home Companion
The Hunchback of Notre Dame
Pleasantville
Rebecca
The Towering Inferno
The Lovely Bones
Program:
function: Find
inputs: The Lovely Bones
function: Find
inputs: Kathryn Bigelow
function: Relate
dependencies: 1
inputs: director
backward
function: Find
inputs: Detroit
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Lovely Bones" .  } UNION { ?e <pred:name> "Detroit" . ?e <director> ?e_1 . ?e_1 <pred:name> "Kathryn Bigelow" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Lovely Bones