Question: Which one has more total sales between Rocky Balboa (the one that filmed in Los Angeles) or Wreck-It Ralph?
Choices: A Christmas Carol
Ponyo on the Cliff by the Sea
The Polar Express
Anastasia
My-HiME
Wreck-It Ralph
Code Geass
Wonder Woman
Rocky Balboa
Superman
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rocky Balboa" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Los Angeles" .   } UNION { ?e <pred:name> "Wreck-It Ralph" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Los Angeles
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Rocky Balboa
function: And
dependencies: 1
2
function: Find
inputs: Wreck-It Ralph
function: SelectBetween
dependencies: 3
4
inputs: box office
greater
Answer: Wreck-It Ralph