Question: Which movie is longer, Total Recall (the one whose producer is Mario Kassar) or Havana (the one whose producer is Sydney Pollack)?
Choices:
Havana
The Hunchback of Notre Dame
The Towering Inferno
Total Recall
A Prairie Home Companion
Pleasantville
Training Day
Talk to Her
The Fifth Element
Curse of the Golden Flower
Program:
function: Find
inputs: Mario Kassar
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Total Recall
function: And
dependencies: 1
2
function: Find
inputs: Sydney Pollack
function: Relate
dependencies: 4
inputs: producer
backward
function: Find
inputs: Havana
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Total Recall" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Mario Kassar" .   } UNION { ?e <pred:name> "Havana" . ?e <producer> ?e_2 . ?e_2 <pred:name> "Sydney Pollack" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Havana