Question: Which movie is shorter, Cheyenne (the one whose title is Cheyenne) or A View to a Kill (the one that is designed by Peter Lamont)?
Choices:
Cheyenne
A Prairie Home Companion
Pleasantville
Rebecca
The Hunchback of Notre Dame
Curse of the Golden Flower
Training Day
Talk to Her
The Towering Inferno
The Fifth Element
Program:
function: Find
inputs: Cheyenne
function: FilterStr
dependencies: 0
inputs: title
Cheyenne
function: Find
inputs: Peter Lamont
function: Relate
dependencies: 2
inputs: production designer
backward
function: Find
inputs: A View to a Kill
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cheyenne" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Cheyenne" . } UNION { ?e <pred:name> "A View to a Kill" . ?e <production_designer> ?e_1 . ?e_1 <pred:name> "Peter Lamont" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Cheyenne