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