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