Question: Which movie is shorter, Staten Island (the one that origins from France) or The Time Machine (the one whose distributor is Metro-Goldwyn-Mayer)?
Choices:
Rebecca
Training Day
The Fifth Element
A Prairie Home Companion
Pleasantville
Staten Island
The Hunchback of Notre Dame
Talk to Her
The Towering Inferno
Curse of the Golden Flower
Program:
function: Find
inputs: France
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Staten Island
function: And
dependencies: 1
2
function: Find
inputs: Metro-Goldwyn-Mayer
function: Relate
dependencies: 4
inputs: distributor
backward
function: Find
inputs: The Time Machine
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Staten Island" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "France" .   } UNION { ?e <pred:name> "The Time Machine" . ?e <distributor> ?e_2 . ?e_2 <pred:name> "Metro-Goldwyn-Mayer" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Staten Island