Question: Which one has more tickets sold between The Aviator (the one with director of photography is Robert Richardson) and Crazy Heart?
Choices: Curse of the Golden Flower
The Towering Inferno
The Hunchback of Notre Dame
The Fifth Element
Pleasantville
Training Day
Talk to Her
The Aviator
Crazy Heart
A Prairie Home Companion
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Aviator" . ?e <director_of_photography> ?e_1 . ?e_1 <pred:name> "Robert Richardson" .   } UNION { ?e <pred:name> "Crazy Heart" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Robert Richardson
function: Relate
dependencies: 0
inputs: director of photography
backward
function: Find
inputs: The Aviator
function: And
dependencies: 1
2
function: Find
inputs: Crazy Heart
function: SelectBetween
dependencies: 3
4
inputs: box office
greater
Answer: The Aviator