Question: Which has more box office, Big Fish or Independence Day released in the USA?
Choices:
Rebecca
Training Day
The Fifth Element
Talk to Her
Independence Day
The Hunchback of Notre Dame
Pleasantville
A Prairie Home Companion
Curse of the Golden Flower
Big Fish
Program:
function: Find
inputs: Big Fish
function: Find
inputs: United States of America
function: Relate
dependencies: 1
inputs: film release region
backward
function: Find
inputs: Independence Day
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Big Fish" .  } UNION { ?e <pred:name> "Independence Day" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "United States of America" .   } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Independence Day