Question: Which has a greater duration, The Great Gatsby (which has cast member Amitabh Bachchan) or A Dangerous Method?
Choices: The Great Gatsby
Pleasantville
Rebecca
The Hunchback of Notre Dame
The Fifth Element
The Towering Inferno
Curse of the Golden Flower
A Prairie Home Companion
Training Day
A Dangerous Method
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Great Gatsby" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Amitabh Bachchan" .   } UNION { ?e <pred:name> "A Dangerous Method" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Amitabh Bachchan
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Great Gatsby
function: And
dependencies: 1
2
function: Find
inputs: A Dangerous Method
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
Answer: The Great Gatsby