Question: Which movie made less at the box office, Unfaithful (the one whose distributor is 20th Century Fox) or Close Encounters of the Third Kind?
Choices:
The Hunchback of Notre Dame
The Towering Inferno
Curse of the Golden Flower
Unfaithful
Pleasantville
Training Day
Talk to Her
Close Encounters of the Third Kind
A Prairie Home Companion
The Fifth Element
Program:
function: Find
inputs: 20th Century Fox
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Unfaithful
function: And
dependencies: 1
2
function: Find
inputs: Close Encounters of the Third Kind
function: SelectBetween
dependencies: 3
4
inputs: box office
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Unfaithful" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "20th Century Fox" .   } UNION { ?e <pred:name> "Close Encounters of the Third Kind" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Unfaithful