Question: Which movie is longer, The Birdcage or Carrie (the one whose color is black-and-white)?
Choices:
A Prairie Home Companion
Talk to Her
The Hunchback of Notre Dame
The Fifth Element
The Towering Inferno
Carrie
Pleasantville
Training Day
Rebecca
Curse of the Golden Flower
Program:
function: Find
inputs: The Birdcage
function: Find
inputs: black-and-white
function: Relate
dependencies: 1
inputs: color
backward
function: Find
inputs: Carrie
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Birdcage" .  } UNION { ?e <pred:name> "Carrie" . ?e <color> ?e_1 . ?e_1 <pred:name> "black-and-white" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Carrie