Question: Which movie is shorter, Lara Croft Tomb Raider: The Cradle of Life or The Great Gatsby (the one whose genre is silent film)?
Choices:
The Towering Inferno
Curse of the Golden Flower
The Great Gatsby
A Prairie Home Companion
The Hunchback of Notre Dame
Training Day
Lara Croft Tomb Raider: The Cradle of Life
Pleasantville
The Fifth Element
Rebecca
Program:
function: Find
inputs: Lara Croft Tomb Raider: The Cradle of Life
function: Find
inputs: silent film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: The Great Gatsby
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lara Croft Tomb Raider: The Cradle of Life" .  } UNION { ?e <pred:name> "The Great Gatsby" . ?e <genre> ?e_1 . ?e_1 <pred:name> "silent film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Great Gatsby