Question: Which costed less, the detective fiction work The Secret in Their Eyes or Quest for Fire?
Choices:
Training Day
Quest for Fire
The Towering Inferno
The Secret in Their Eyes
The Hunchback of Notre Dame
Pleasantville
Curse of the Golden Flower
Rebecca
A Prairie Home Companion
The Fifth Element
Answer: The Secret in Their Eyes
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Secret in Their Eyes" . ?e <genre> ?e_1 . ?e_1 <pred:name> "detective fiction" .   } UNION { ?e <pred:name> "Quest for Fire" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: detective fiction
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Secret in Their Eyes
function: And
dependencies: 1
2
function: Find
inputs: Quest for Fire
function: SelectBetween
dependencies: 3
4
inputs: cost
less