Question: Between The Straight Story or Splash, with Daryl Hannah as a cast member, which is shorter?
Choices:
Holes
The Flintstones in Viva Rock Vegas
The Straight Story
G-Force
The Muppets
Alvin and the Chipmunks: Chipwrecked
National Treasure: Book of Secrets
Old Dogs
John Carter
The Flintstones
Program:
function: Find
inputs: The Straight Story
function: Find
inputs: Daryl Hannah
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Splash
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Straight Story" .  } UNION { ?e <pred:name> "Splash" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Daryl Hannah" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Straight Story