Question: Which movie cost less to make, Cape Fear (the one whose director of photography is Freddie Francis) or Algiers (the one whose cost is 691833 United States dollar)?
Choices: Rebecca
Talk to Her
Curse of the Golden Flower
Training Day
Pleasantville
The Towering Inferno
Algiers
Cape Fear
A Prairie Home Companion
The Fifth Element
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cape Fear" . ?e <director_of_photography> ?e_1 . ?e_1 <pred:name> "Freddie Francis" . } UNION { ?e <pred:name> "Algiers" . ?e <cost> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "691833"^^xsd:double . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Freddie Francis
function: Relate
dependencies: 0
inputs: director of photography
backward
function: Find
inputs: Cape Fear
function: And
dependencies: 1
2
function: Find
inputs: Algiers
function: FilterNum
dependencies: 4
inputs: cost
691833 United States dollar
=
function: SelectBetween
dependencies: 3
5
inputs: cost
less
Answer: Algiers