Question: Which movie cost less to make, The Phantom of the Opera (the one whose script is wrote by Joel Schumacher) or Captain America: The First Avenger?
Choices:
Pleasantville
The Hunchback of Notre Dame
Captain America: The First Avenger
The Towering Inferno
Curse of the Golden Flower
Rebecca
Training Day
The Phantom of the Opera
The Fifth Element
A Prairie Home Companion
Program:
function: Find
inputs: Joel Schumacher
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: The Phantom of the Opera
function: And
dependencies: 1
2
function: Find
inputs: Captain America: The First Avenger
function: SelectBetween
dependencies: 3
4
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Phantom of the Opera" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Joel Schumacher" .   } UNION { ?e <pred:name> "Captain America: The First Avenger" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Phantom of the Opera