Question: Which movie made more at the box office, Gran Torino or Some Like It Hot (the one whose distributor is United Artists)?
Choices:
Talk to Her
Rebecca
Training Day
Gran Torino
Curse of the Golden Flower
A Prairie Home Companion
The Towering Inferno
Pleasantville
The Hunchback of Notre Dame
The Fifth Element
Answer: Gran Torino
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Gran Torino" .  } UNION { ?e <pred:name> "Some Like It Hot" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "United Artists" .   } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Gran Torino
function: Find
inputs: United Artists
function: Relate
dependencies: 1
inputs: distributor
backward
function: Find
inputs: Some Like It Hot
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: box office
greater