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