Question: Which has more cost, Annie that is shot in New York City or Amistad?
Choices:
A Prairie Home Companion
Curse of the Golden Flower
Training Day
Rebecca
The Towering Inferno
Annie
Talk to Her
Pleasantville
The Hunchback of Notre Dame
The Fifth Element
Program:
function: Find
inputs: New York City
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Annie
function: And
dependencies: 1
2
function: Find
inputs: Amistad
function: SelectBetween
dependencies: 3
4
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Annie" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "New York City" .   } UNION { ?e <pred:name> "Amistad" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Annie