Question: Which was longer, the action film Red Dragon or Greystoke: The Legend of Tarzan, Lord of the Apes?
Choices:
Training Day
Pleasantville
Greystoke: The Legend of Tarzan, Lord of the Apes
The Fifth Element
Rebecca
Red Dragon
A Prairie Home Companion
The Hunchback of Notre Dame
Talk to Her
Curse of the Golden Flower
Program:
function: Find
inputs: action film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Red Dragon
function: And
dependencies: 1
2
function: Find
inputs: Greystoke: The Legend of Tarzan, Lord of the Apes
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Red Dragon" . ?e <genre> ?e_1 . ?e_1 <pred:name> "action film" .   } UNION { ?e <pred:name> "Greystoke: The Legend of Tarzan, Lord of the Apes" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Greystoke: The Legend of Tarzan, Lord of the Apes