Question: Which has less box office, Hellboy produced by Columbia Pictures or Psycho released in Spain?
Choices:
Psycho
Curse of the Golden Flower
The Hunchback of Notre Dame
A Prairie Home Companion
Rebecca
The Towering Inferno
Pleasantville
The Fifth Element
Training Day
Talk to Her
Answer: Psycho
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hellboy" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Columbia Pictures" .   } UNION { ?e <pred:name> "Psycho" . ?e <film_release_region> ?e_2 . ?e_2 <pred:name> "Spain" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Columbia Pictures
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Hellboy
function: And
dependencies: 1
2
function: Find
inputs: Spain
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: Psycho
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: box office
less