Question: Which movie is shorter, King Kong (the one that was nominated for Academy Award for Best Cinematography) or Lebanon (the one that origins from Germany)?
Choices:
A Prairie Home Companion
Pleasantville
The Towering Inferno
Rebecca
King Kong
Curse of the Golden Flower
The Hunchback of Notre Dame
Talk to Her
Training Day
Lebanon
Program:
function: Find
inputs: Academy Award for Best Cinematography
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: King Kong
function: And
dependencies: 1
2
function: Find
inputs: Germany
function: Relate
dependencies: 4
inputs: country of origin
backward
function: Find
inputs: Lebanon
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "King Kong" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Cinematography" .   } UNION { ?e <pred:name> "Lebanon" . ?e <country_of_origin> ?e_2 . ?e_2 <pred:name> "Germany" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Lebanon