Question: Which is longer, Ghost Rider: Spirit of Vengeance or Samson and Delilah that origins from Italy?
Choices:
Shackleton
The Goodbye Girl
Samson and Delilah
The Music Man
A Christmas Carol
All Quiet on the Western Front
The Three Musketeers
A Streetcar Named Desire
The Late Shift
The Challenge
Program:
function: Find
inputs: Ghost Rider: Spirit of Vengeance
function: Find
inputs: Italy
function: Relate
dependencies: 1
inputs: country of origin
backward
function: Find
inputs: Samson and Delilah
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ghost Rider: Spirit of Vengeance" .  } UNION { ?e <pred:name> "Samson and Delilah" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Italy" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Samson and Delilah