Question: Which movie is shorter, The Phantom of the Opera (the one whose composer is Ennio Morricone) or Morocco (the one whose original language is English)?
Choices:
The Fifth Element
A Prairie Home Companion
Talk to Her
Curse of the Golden Flower
Pleasantville
Rebecca
The Phantom of the Opera
The Towering Inferno
Training Day
Morocco
Program:
function: Find
inputs: Ennio Morricone
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: The Phantom of the Opera
function: And
dependencies: 1
2
function: Find
inputs: English
function: Relate
dependencies: 4
inputs: original language of film or TV show
backward
function: Find
inputs: Morocco
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Phantom of the Opera" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Ennio Morricone" .   } UNION { ?e <pred:name> "Morocco" . ?e <original_language_of_film_or_TV_show> ?e_2 . ?e_2 <pred:name> "English" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Morocco