Question: Does Halloween (that has Malcolm McDowell as a cast member) or Star Trek (that has Clifton Collins as a cast member) have the larger box office?
Choices: Pleasantville
Rebecca
Talk to Her
A Prairie Home Companion
Star Trek
The Hunchback of Notre Dame
The Towering Inferno
Halloween
Training Day
The Fifth Element
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Halloween" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Malcolm McDowell" .   } UNION { ?e <pred:name> "Star Trek" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Clifton Collins" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Malcolm McDowell
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Halloween
function: And
dependencies: 1
2
function: Find
inputs: Clifton Collins
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Star Trek
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: box office
greater
Answer: Star Trek