Question: Which movie is shorter, The Haunting (the one that has Liam Neeson as a cast member) or The Diary of Anne Frank (the one that received Academy Award for Best Supporting Actress)?
Choices:
A Prairie Home Companion
Talk to Her
The Diary of Anne Frank
The Towering Inferno
Curse of the Golden Flower
Training Day
Pleasantville
The Hunchback of Notre Dame
The Fifth Element
The Haunting
Program:
function: Find
inputs: Liam Neeson
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Haunting
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Supporting Actress
function: Relate
dependencies: 4
inputs: award received
backward
function: Find
inputs: The Diary of Anne Frank
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Haunting" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Liam Neeson" .   } UNION { ?e <pred:name> "The Diary of Anne Frank" . ?e <award_received> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Supporting Actress" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Haunting