Question: Which one is shorter, Evolution (the one that has John Cho as a cast member) or GoldenEye (the one that is shot in Monaco) ?
Choices:
Evolution
The Hunchback of Notre Dame
The Fifth Element
Rebecca
The Towering Inferno
A Prairie Home Companion
Talk to Her
Curse of the Golden Flower
Pleasantville
GoldenEye
Program:
function: Find
inputs: John Cho
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Evolution
function: And
dependencies: 1
2
function: Find
inputs: Monaco
function: Relate
dependencies: 4
inputs: filming location
backward
function: Find
inputs: GoldenEye
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Evolution" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "John Cho" .   } UNION { ?e <pred:name> "GoldenEye" . ?e <filming_location> ?e_2 . ?e_2 <pred:name> "Monaco" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Evolution