Question: Does The Weather Man or Love Story, originating in Italy, have the shorter run-time?
Choices:
Training Day
The Towering Inferno
Pleasantville
The Fifth Element
Rebecca
The Weather Man
Love Story
Talk to Her
A Prairie Home Companion
Curse of the Golden Flower
Program:
function: Find
inputs: The Weather Man
function: Find
inputs: Italy
function: Relate
dependencies: 1
inputs: country of origin
backward
function: Find
inputs: Love Story
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Weather Man" .  } UNION { ?e <pred:name> "Love Story" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Italy" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Love Story