Question: Which is longer, Waterloo that comes from Germany or Sergeant York?
Choices:
The Towering Inferno
The Fifth Element
Training Day
Waterloo
A Prairie Home Companion
Talk to Her
The Hunchback of Notre Dame
Rebecca
Sergeant York
Pleasantville
Answer: Sergeant York
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Waterloo" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Germany" .   } UNION { ?e <pred:name> "Sergeant York" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Germany
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Waterloo
function: And
dependencies: 1
2
function: Find
inputs: Sergeant York
function: SelectBetween
dependencies: 3
4
inputs: duration
greater