Question: Which movie cost less, Limitless (the one whose distributor is Relativity Media) or Unfaithful (the one that is distributed at United Kingdom)?
Choices:
Curse of the Golden Flower
The Towering Inferno
Talk to Her
Rebecca
Pleasantville
A Prairie Home Companion
Training Day
The Hunchback of Notre Dame
The Fifth Element
Limitless
Program:
function: Find
inputs: Relativity Media
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Limitless
function: And
dependencies: 1
2
function: Find
inputs: United Kingdom
function: Relate
dependencies: 4
inputs: film distribute region
backward
function: Find
inputs: Unfaithful
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Limitless" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Relativity Media" .   } UNION { ?e <pred:name> "Unfaithful" . ?e <film_distribute_region> ?e_2 . ?e_2 <pred:name> "United Kingdom" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Limitless