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