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