Question: Which one is longer, My Left Foot or Loving (the one whose narrative location is Connecticut) ?
Choices:
Talk to Her
My Left Foot
Curse of the Golden Flower
The Towering Inferno
Loving
A Prairie Home Companion
The Fifth Element
The Hunchback of Notre Dame
Pleasantville
Rebecca
Program:
function: Find
inputs: My Left Foot
function: Find
inputs: Connecticut
function: Relate
dependencies: 1
inputs: narrative location
backward
function: Find
inputs: Loving
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "My Left Foot" .  } UNION { ?e <pred:name> "Loving" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Connecticut" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: My Left Foot