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