Question: Which movie is shorter, Shanghai (the one whose genre is romance film) or Since You Went Away?
Choices:
Curse of the Golden Flower
The Fifth Element
Pleasantville
Shanghai
Training Day
A Prairie Home Companion
Since You Went Away
The Towering Inferno
The Hunchback of Notre Dame
Talk to Her
Program:
function: Find
inputs: romance film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Shanghai
function: And
dependencies: 1
2
function: Find
inputs: Since You Went Away
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Shanghai" . ?e <genre> ?e_1 . ?e_1 <pred:name> "romance film" .   } UNION { ?e <pred:name> "Since You Went Away" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Shanghai