Question: Which movie is longer, Chasing Amy or Hercules (the one whose distributor is Metro-Goldwyn-Mayer)?
Choices:
Training Day
Rebecca
Hercules
Talk to Her
Pleasantville
The Towering Inferno
A Prairie Home Companion
The Hunchback of Notre Dame
The Fifth Element
Chasing Amy
Answer: Chasing Amy
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chasing Amy" .  } UNION { ?e <pred:name> "Hercules" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Metro-Goldwyn-Mayer" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Chasing Amy
function: Find
inputs: Metro-Goldwyn-Mayer
function: Relate
dependencies: 1
inputs: distributor
backward
function: Find
inputs: Hercules
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater