Question: Which movie is shorter, Along Came a Spider (the one whose genre is psychological thriller) or Sky Captain and the World of Tomorrow?
Choices:
Along Came a Spider
Talk to Her
The Fifth Element
The Towering Inferno
Rebecca
Training Day
Sky Captain and the World of Tomorrow
The Hunchback of Notre Dame
Pleasantville
A Prairie Home Companion
Program:
function: Find
inputs: psychological thriller
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Along Came a Spider
function: And
dependencies: 1
2
function: Find
inputs: Sky Captain and the World of Tomorrow
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Along Came a Spider" . ?e <genre> ?e_1 . ?e_1 <pred:name> "psychological thriller" .   } UNION { ?e <pred:name> "Sky Captain and the World of Tomorrow" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Along Came a Spider