Question: Which movie is shorter, Doctor Zhivago (the one that origins from Italy) or High Fidelity (the one that has Bruce Springsteen as a cast member)?
Choices:
Training Day
The Fifth Element
Pleasantville
The Towering Inferno
Doctor Zhivago
The Hunchback of Notre Dame
Rebecca
Curse of the Golden Flower
Talk to Her
High Fidelity
Program:
function: Find
inputs: Italy
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Doctor Zhivago
function: And
dependencies: 1
2
function: Find
inputs: Bruce Springsteen
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: High Fidelity
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Doctor Zhivago" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Italy" .   } UNION { ?e <pred:name> "High Fidelity" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Bruce Springsteen" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: High Fidelity