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