Question: Is the shorter work The Spy Who Loved Me, an Academy Award nominee for Best Original Score, or Breaker Morant, set in South Africa?
Choices:
The Spy Who Loved Me
Talk to Her
Breaker Morant
A Prairie Home Companion
The Fifth Element
Curse of the Golden Flower
The Hunchback of Notre Dame
Training Day
The Towering Inferno
Rebecca
Program:
function: Find
inputs: Academy Award for Best Original Score
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: The Spy Who Loved Me
function: And
dependencies: 1
2
function: Find
inputs: South Africa
function: Relate
dependencies: 4
inputs: narrative location
backward
function: Find
inputs: Breaker Morant
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Spy Who Loved Me" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Original Score" .   } UNION { ?e <pred:name> "Breaker Morant" . ?e <narrative_location> ?e_2 . ?e_2 <pred:name> "South Africa" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Breaker Morant