Question: Which is longer, Giant (from Uruguay) or Hancock?
Choices:
Pleasantville
Training Day
Talk to Her
Curse of the Golden Flower
The Towering Inferno
Hancock
A Prairie Home Companion
The Hunchback of Notre Dame
Rebecca
Giant
Program:
function: Find
inputs: Uruguay
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Giant
function: And
dependencies: 1
2
function: Find
inputs: Hancock
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Giant" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Uruguay" .   } UNION { ?e <pred:name> "Hancock" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Hancock