Question: Which movie is longer, the action film Fair Game or Reds?
Choices:
The Hunchback of Notre Dame
Fair Game
Rebecca
The Fifth Element
Reds
The Towering Inferno
Training Day
Curse of the Golden Flower
Pleasantville
A Prairie Home Companion
Program:
function: Find
inputs: Reds
function: Find
inputs: action film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Fair Game
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Reds" .  } UNION { ?e <pred:name> "Fair Game" . ?e <genre> ?e_1 . ?e_1 <pred:name> "action film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Reds