Question: Which movie is longer, Dead Ringers or Vanity Fair (the one whose color is black-and-white)?
Choices:
Vanity Fair
The Towering Inferno
Pleasantville
Talk to Her
The Fifth Element
The Hunchback of Notre Dame
A Prairie Home Companion
Dead Ringers
Training Day
Rebecca
Program:
function: Find
inputs: Dead Ringers
function: Find
inputs: black-and-white
function: Relate
dependencies: 1
inputs: color
backward
function: Find
inputs: Vanity Fair
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dead Ringers" .  } UNION { ?e <pred:name> "Vanity Fair" . ?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: Dead Ringers