Question: Which one is shorter, The Fighter (the one whose producer is Ryan Kavanaugh) or Cuba (the one whose duration is 117 minutes) ?
Choices:
Pleasantville
The Towering Inferno
The Hunchback of Notre Dame
Rebecca
Curse of the Golden Flower
A Prairie Home Companion
The Fighter
Talk to Her
Cuba
Training Day
Program:
function: Find
inputs: Ryan Kavanaugh
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: The Fighter
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
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Fighter" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Ryan Kavanaugh" . } 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
Answer: The Fighter