Question: Which movie is longer, Machete (the one whose producer is Robert Rodriguez) or The Matrix?
Choices:
Pleasantville
Curse of the Golden Flower
Machete
The Hunchback of Notre Dame
The Fifth Element
Talk to Her
Rebecca
The Matrix
Training Day
The Towering Inferno
Program:
function: Find
inputs: Robert Rodriguez
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Machete
function: And
dependencies: 1
2
function: Find
inputs: The Matrix
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Machete" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Robert Rodriguez" .   } UNION { ?e <pred:name> "The Matrix" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Matrix