Question: Which one, Mission: Impossible (the one that is followed by Mission: Impossible II) or Steve Jobs (the one that has John Ortiz as a cast member), has less box office?
Choices:
Pleasantville
Talk to Her
Curse of the Golden Flower
The Towering Inferno
Rebecca
The Fifth Element
Steve Jobs
Training Day
Mission: Impossible
The Hunchback of Notre Dame
Answer: Steve Jobs
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mission: Impossible" . ?e_1 <follows> ?e . ?e_1 <pred:name> "Mission: Impossible II" .   } UNION { ?e <pred:name> "Steve Jobs" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "John Ortiz" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Mission: Impossible II
function: Relate
dependencies: 0
inputs: follows
forward
function: Find
inputs: Mission: Impossible
function: And
dependencies: 1
2
function: Find
inputs: John Ortiz
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Steve Jobs
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: box office
less