Question: Which movie is shorter, The Island (the one that has Sean Bean as a cast member) or Robin Hood (the one whose film poster is Douglas Fairbanks Robin Hood 1922 film poster.jpg)?
Choices:
Curse of the Golden Flower
The Hunchback of Notre Dame
Pleasantville
A Prairie Home Companion
The Towering Inferno
The Fifth Element
The Island
Robin Hood
Training Day
Talk to Her
Program:
function: Find
inputs: Sean Bean
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Island
function: And
dependencies: 1
2
function: Find
inputs: Robin Hood
function: FilterStr
dependencies: 4
inputs: film poster
Douglas Fairbanks Robin Hood 1922 film poster.jpg
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Island" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Sean Bean" . } UNION { ?e <pred:name> "Robin Hood" . ?e <film_poster> ?pv_1 . ?pv_1 <pred:value> "Douglas Fairbanks Robin Hood 1922 film poster.jpg" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Island