Question: Does The Holiday or Bonnie and Clyde (that is produced by Warren Beatty) have the lower cost?
Choices:
The Fifth Element
Bonnie and Clyde
Curse of the Golden Flower
The Hunchback of Notre Dame
Rebecca
Pleasantville
The Towering Inferno
Training Day
Talk to Her
The Holiday
Program:
function: Find
inputs: The Holiday
function: Find
inputs: Warren Beatty
function: Relate
dependencies: 1
inputs: producer
backward
function: Find
inputs: Bonnie and Clyde
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Holiday" .  } UNION { ?e <pred:name> "Bonnie and Clyde" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Warren Beatty" .   } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Bonnie and Clyde