Question: Which film has the higher box office, The Nutty Professor (whose production company is Imagine Entertainment) or Thunderball (that received the 38th Academy Award)?
Choices:
A Prairie Home Companion
The Nutty Professor
The Towering Inferno
The Fifth Element
Thunderball
Talk to Her
The Hunchback of Notre Dame
Training Day
Pleasantville
Rebecca
Answer: The Nutty Professor
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Nutty Professor" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Imagine Entertainment" .   } UNION { ?e <pred:name> "Thunderball" . ?e <award_received> ?e_2 . ?e_2 <pred:name> "38th Academy Awards" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Imagine Entertainment
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: The Nutty Professor
function: And
dependencies: 1
2
function: Find
inputs: 38th Academy Awards
function: Relate
dependencies: 4
inputs: award received
backward
function: Find
inputs: Thunderball
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: box office
greater