Question: Which is shorter, Cuba whose duration is 117 minutes or Rush whose script was written by Peter Morgan?
Choices: The Hunchback of Notre Dame
Cuba
Pleasantville
Rush
The Fifth Element
The Towering Inferno
Rebecca
Talk to Her
A Prairie Home Companion
Curse of the Golden Flower
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cuba" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "117"^^xsd:double . } UNION { ?e <pred:name> "Rush" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Peter Morgan" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Cuba
function: FilterNum
dependencies: 0
inputs: duration
117 minute
=
function: Find
inputs: Peter Morgan
function: Relate
dependencies: 2
inputs: screenwriter
backward
function: Find
inputs: Rush
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
Answer: Cuba