Question: Which film has the lower box office, Harry Potter and the Order of the Phoenix (that has Ralph Fiennes as a cast member) or Moonraker (that originates in France)?
Choices: Rebecca
A Prairie Home Companion
Talk to Her
The Fifth Element
Training Day
Moonraker
Pleasantville
Curse of the Golden Flower
Harry Potter and the Order of the Phoenix
The Hunchback of Notre Dame
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Harry Potter and the Order of the Phoenix" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Ralph Fiennes" .   } UNION { ?e <pred:name> "Moonraker" . ?e <country_of_origin> ?e_2 . ?e_2 <pred:name> "France" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Ralph Fiennes
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Harry Potter and the Order of the Phoenix
function: And
dependencies: 1
2
function: Find
inputs: France
function: Relate
dependencies: 4
inputs: country of origin
backward
function: Find
inputs: Moonraker
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: box office
less
Answer: Moonraker