Question: Does the film Forrest Gump (that has John Lennon as a cast member) or Crazy Heart have the lower box office?
Choices: Pleasantville
Forrest Gump
Training Day
The Hunchback of Notre Dame
Talk to Her
Curse of the Golden Flower
Crazy Heart
The Fifth Element
The Towering Inferno
Rebecca
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Forrest Gump" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "John Lennon" .   } UNION { ?e <pred:name> "Crazy Heart" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: John Lennon
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Forrest Gump
function: And
dependencies: 1
2
function: Find
inputs: Crazy Heart
function: SelectBetween
dependencies: 3
4
inputs: box office
less
Answer: Crazy Heart