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