Question: Which movie is shorter: (the one whose narrative location is Los Angeles) or Puss in Boots (the one whose producer is Menahem Golan)?
Choices: A Prairie Home Companion
The Towering Inferno
The Hunchback of Notre Dame
Training Day
Puss in Boots
Curse of the Golden Flower
Pleasantville
Constantine
Talk to Her
The Fifth Element
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Constantine" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Los Angeles" .   } UNION { ?e <pred:name> "Puss in Boots" . ?e <producer> ?e_2 . ?e_2 <pred:name> "Menahem Golan" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Los Angeles
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Constantine
function: And
dependencies: 1
2
function: Find
inputs: Menahem Golan
function: Relate
dependencies: 4
inputs: producer
backward
function: Find
inputs: Puss in Boots
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
Answer: Puss in Boots