Question: Which movie is shorter, Beauty and the Beast (the one that origins from Germany) or City Slickers?
Choices:
The Hunchback of Notre Dame
City Slickers
Curse of the Golden Flower
Talk to Her
Training Day
Pleasantville
Beauty and the Beast
The Towering Inferno
Rebecca
The Fifth Element
Program:
function: Find
inputs: Germany
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Beauty and the Beast
function: And
dependencies: 1
2
function: Find
inputs: City Slickers
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Beauty and the Beast" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Germany" .   } UNION { ?e <pred:name> "City Slickers" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: City Slickers