Question: Which is shorter, The Mission produced by Johnnie To or The Diary of Anne Frank (the one that received Academy Award for Best Supporting Actress)?
Choices:
The Towering Inferno
Rebecca
The Mission
Pleasantville
The Fifth Element
The Diary of Anne Frank
Talk to Her
A Prairie Home Companion
Curse of the Golden Flower
The Hunchback of Notre Dame
Answer: The Mission
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Mission" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Johnnie To" .   } 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
Program:
function: Find
inputs: Johnnie To
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: The Mission
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