Question: Which movie cost less to make, Algiers (the one that was nominated for Academy Award for Best Supporting Actor) or Robin Hood (the one that has Russell Crowe as a cast member)?
Choices:
Robin Hood
Training Day
The Fifth Element
Talk to Her
The Towering Inferno
Algiers
The Hunchback of Notre Dame
A Prairie Home Companion
Pleasantville
Rebecca
Program:
function: Find
inputs: Academy Award for Best Supporting Actor
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Algiers
function: And
dependencies: 1
2
function: Find
inputs: Russell Crowe
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Robin Hood
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Algiers" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Supporting Actor" .   } UNION { ?e <pred:name> "Robin Hood" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Russell Crowe" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Algiers