Question: Which movie made less at the box office, Close Encounters of the Third Kind or Godzilla (the one whose production company is Sony Pictures)?
Choices:
Godzilla
Pleasantville
The Hunchback of Notre Dame
Training Day
Talk to Her
Close Encounters of the Third Kind
The Towering Inferno
The Fifth Element
Rebecca
A Prairie Home Companion
Answer: Close Encounters of the Third Kind
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Close Encounters of the Third Kind" .  } UNION { ?e <pred:name> "Godzilla" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Sony Pictures" .   } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Close Encounters of the Third Kind
function: Find
inputs: Sony Pictures
function: Relate
dependencies: 1
inputs: production company
backward
function: Find
inputs: Godzilla
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: box office
less