Question: Which movie cost more, Apocalypse Now or Chicago (the one whose release region is United States of America)?
Choices:
The Towering Inferno
Apocalypse Now
The Hunchback of Notre Dame
Rebecca
The Fifth Element
Training Day
A Prairie Home Companion
Curse of the Golden Flower
Chicago
Talk to Her
Answer: Chicago
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Apocalypse Now" .  } UNION { ?e <pred:name> "Chicago" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "United States of America" .   } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Apocalypse Now
function: Find
inputs: United States of America
function: Relate
dependencies: 1
inputs: film release region
backward
function: Find
inputs: Chicago
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: cost
greater