Question: Which movie made less at the box office, American Beauty (the one that received Academy Award for Best Writing, Original Screenplay) or Algiers (the one whose producer is Walter Wanger)?
Choices:
A Prairie Home Companion
The Towering Inferno
The Hunchback of Notre Dame
Training Day
The Fifth Element
Pleasantville
Algiers
Curse of the Golden Flower
American Beauty
Rebecca
Answer: Algiers
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "American Beauty" . ?e <award_received> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Writing, Original Screenplay" .   } UNION { ?e <pred:name> "Algiers" . ?e <producer> ?e_2 . ?e_2 <pred:name> "Walter Wanger" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Academy Award for Best Writing, Original Screenplay
function: Relate
dependencies: 0
inputs: award received
backward
function: Find
inputs: American Beauty
function: And
dependencies: 1
2
function: Find
inputs: Walter Wanger
function: Relate
dependencies: 4
inputs: producer
backward
function: Find
inputs: Algiers
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: box office
less