Question: Which movie is longer, Seven Pounds or On Her Majesty's Secret Service (the one that mainly depicts Alps)?
Choices:
The Towering Inferno
Seven Pounds
On Her Majesty's Secret Service
The Fifth Element
Talk to Her
Training Day
A Prairie Home Companion
Curse of the Golden Flower
The Hunchback of Notre Dame
Pleasantville
Program:
function: Find
inputs: Seven Pounds
function: Find
inputs: Alps
function: Relate
dependencies: 1
inputs: main subject
backward
function: Find
inputs: On Her Majesty's Secret Service
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Seven Pounds" .  } UNION { ?e <pred:name> "On Her Majesty's Secret Service" . ?e <main_subject> ?e_1 . ?e_1 <pred:name> "Alps" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: On Her Majesty's Secret Service