Question: Which movie is longer, Monster (the one that mainly depicts serial killer) or An American in Paris?
Choices:
Curse of the Golden Flower
Training Day
A Prairie Home Companion
The Towering Inferno
Pleasantville
Rebecca
The Fifth Element
An American in Paris
Talk to Her
Monster
Program:
function: Find
inputs: serial killer
function: Relate
dependencies: 0
inputs: main subject
backward
function: Find
inputs: Monster
function: And
dependencies: 1
2
function: Find
inputs: An American in Paris
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Monster" . ?e <main_subject> ?e_1 . ?e_1 <pred:name> "serial killer" .   } UNION { ?e <pred:name> "An American in Paris" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Monster