Question: Which movie cost less, High Fidelity (the one whose genre is melodrama) or Mission: Impossible III?
Choices:
Rebecca
A Prairie Home Companion
Talk to Her
Curse of the Golden Flower
The Towering Inferno
Training Day
The Fifth Element
High Fidelity
Mission: Impossible III
Pleasantville
Program:
function: Find
inputs: melodrama
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: High Fidelity
function: And
dependencies: 1
2
function: Find
inputs: Mission: Impossible III
function: SelectBetween
dependencies: 3
4
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "High Fidelity" . ?e <genre> ?e_1 . ?e_1 <pred:name> "melodrama" .   } UNION { ?e <pred:name> "Mission: Impossible III" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: High Fidelity