Question: Which movie is longer, Dazed and Confused or Terminator 3: Rise of the Machines (the one whose composer is Marco Beltrami)?
Choices:
The Fifth Element
Dazed and Confused
Training Day
Pleasantville
Terminator 3: Rise of the Machines
Talk to Her
Curse of the Golden Flower
The Towering Inferno
Rebecca
A Prairie Home Companion
Program:
function: Find
inputs: Dazed and Confused
function: Find
inputs: Marco Beltrami
function: Relate
dependencies: 1
inputs: composer
backward
function: Find
inputs: Terminator 3: Rise of the Machines
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dazed and Confused" .  } UNION { ?e <pred:name> "Terminator 3: Rise of the Machines" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Marco Beltrami" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Terminator 3: Rise of the Machines