Question: Was the slasher film Psycho or was Yentl cheaper to make?
Choices:
Training Day
Pleasantville
Curse of the Golden Flower
The Fifth Element
Psycho
Yentl
Rebecca
The Hunchback of Notre Dame
Talk to Her
The Towering Inferno
Program:
function: Find
inputs: slasher film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Psycho
function: And
dependencies: 1
2
function: Find
inputs: Yentl
function: SelectBetween
dependencies: 3
4
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Psycho" . ?e <genre> ?e_1 . ?e_1 <pred:name> "slasher film" .   } UNION { ?e <pred:name> "Yentl" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Psycho