Question: Which is shorter, The Green Hornet (the one that has James Franco as a cast member) or Space Cowboys?
Choices:
The Hunchback of Notre Dame
Rebecca
The Fifth Element
Talk to Her
The Green Hornet
A Prairie Home Companion
Pleasantville
Space Cowboys
Curse of the Golden Flower
The Towering Inferno
Program:
function: Find
inputs: James Franco
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Green Hornet
function: And
dependencies: 1
2
function: Find
inputs: Space Cowboys
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Green Hornet" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "James Franco" .   } UNION { ?e <pred:name> "Space Cowboys" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Green Hornet