Question: Which is sorter, Casino Royale designed by Peter Lamont or Cowboys & Aliens?
Choices:
Curse of the Golden Flower
Casino Royale
Pleasantville
Training Day
The Hunchback of Notre Dame
The Towering Inferno
The Fifth Element
Rebecca
A Prairie Home Companion
Cowboys & Aliens
Program:
function: Find
inputs: Peter Lamont
function: Relate
dependencies: 0
inputs: production designer
backward
function: Find
inputs: Casino Royale
function: And
dependencies: 1
2
function: Find
inputs: Cowboys & Aliens
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Casino Royale" . ?e <production_designer> ?e_1 . ?e_1 <pred:name> "Peter Lamont" .   } UNION { ?e <pred:name> "Cowboys & Aliens" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Cowboys & Aliens