Question: Which movie is shorter, Milk (the one that was nominated for Independent Spirit Award for Best Supporting Male) or Cuba (the one whose duration is 117 minute)?
Choices:
The Hunchback of Notre Dame
Milk
A Prairie Home Companion
Talk to Her
Training Day
Cuba
The Towering Inferno
Rebecca
Pleasantville
The Fifth Element
Answer: Cuba
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Milk" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Independent Spirit Award for Best Supporting Male" . } UNION { ?e <pred:name> "Cuba" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "117"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Independent Spirit Award for Best Supporting Male
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Milk
function: And
dependencies: 1
2
function: Find
inputs: Cuba
function: FilterNum
dependencies: 4
inputs: duration
117 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less