Question: Which movie is shorter, Training Day (the one whose title is Training Day) or Neighbours (the one that origins from Canada)?
Choices:
Eve
David Copperfield
The Cure
Robin Hood
The Town
The Fugitive
Frankenstein
Training Day
The Animatrix
Neighbours
Answer: Neighbours
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Training Day" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Training Day" . } UNION { ?e <pred:name> "Neighbours" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Canada" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Training Day
function: FilterStr
dependencies: 0
inputs: title
Training Day
function: Find
inputs: Canada
function: Relate
dependencies: 2
inputs: country of origin
backward
function: Find
inputs: Neighbours
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less