Question: Which has more box office, Hellboy produced by Sony Pictures or Patton?
Choices: A Prairie Home Companion
The Towering Inferno
Pleasantville
The Hunchback of Notre Dame
Patton
Rebecca
Talk to Her
The Fifth Element
Hellboy
Training Day
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hellboy" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Sony Pictures" .   } UNION { ?e <pred:name> "Patton" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Sony Pictures
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Hellboy
function: And
dependencies: 1
2
function: Find
inputs: Patton
function: SelectBetween
dependencies: 3
4
inputs: box office
greater
Answer: Hellboy