Question: Which movie is shorter, Coming Home (the one whose title is Mein Vater) or Harlow (the one whose distributor is Paramount Pictures)?
Choices:
A Streetcar Named Desire
The Three Musketeers
Harlow
All Quiet on the Western Front
The Music Man
Shackleton
The Goodbye Girl
Coming Home
A Christmas Carol
The Late Shift
Program:
function: Find
inputs: Coming Home
function: FilterStr
dependencies: 0
inputs: title
Mein Vater
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 2
inputs: distributor
backward
function: Find
inputs: Harlow
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Coming Home" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Mein Vater" . } UNION { ?e <pred:name> "Harlow" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Paramount Pictures" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Coming Home