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