Question: Which is shorter, Rent starring Taye Diggs or Little Nicky starring Harvey Keitel?
Choices:
Pleasantville
Rent
Talk to Her
The Fifth Element
Training Day
Curse of the Golden Flower
A Prairie Home Companion
Little Nicky
Rebecca
The Towering Inferno
Program:
function: Find
inputs: Taye Diggs
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Rent
function: And
dependencies: 1
2
function: Find
inputs: Harvey Keitel
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Little Nicky
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rent" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Taye Diggs" .   } UNION { ?e <pred:name> "Little Nicky" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Harvey Keitel" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Little Nicky