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