Question: Which movie is longer, The Edge (the one whose director of photography is Donald McAlpine) or The Cardinal (the one whose color is black-and-white)?
Choices: Pleasantville
The Hunchback of Notre Dame
The Towering Inferno
The Edge
Talk to Her
Rebecca
Training Day
A Prairie Home Companion
The Fifth Element
Curse of the Golden Flower
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Edge" . ?e <director_of_photography> ?e_1 . ?e_1 <pred:name> "Donald McAlpine" .   } UNION { ?e <pred:name> "The Cardinal" . ?e <color> ?e_2 . ?e_2 <pred:name> "black-and-white" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Donald McAlpine
function: Relate
dependencies: 0
inputs: director of photography
backward
function: Find
inputs: The Edge
function: And
dependencies: 1
2
function: Find
inputs: black-and-white
function: Relate
dependencies: 4
inputs: color
backward
function: Find
inputs: The Cardinal
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: The Edge