Question: Which movie is longer, The Bourne Identity (the one whose country is United States of America) or Walk the Line?
Choices:
The Music Man
Walk the Line
A Streetcar Named Desire
The Three Musketeers
All Quiet on the Western Front
Shackleton
The Challenge
A Christmas Carol
The Goodbye Girl
The Bourne Identity
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: The Bourne Identity
function: And
dependencies: 1
2
function: Find
inputs: Walk the Line
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Bourne Identity" . ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Walk the Line" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Bourne Identity