Question: Which is longer, The Commitments, which was nominated for a Best Film BAFTA, or Loving, which was set in New York City?
Choices:
Pleasantville
Rebecca
Training Day
The Towering Inferno
Curse of the Golden Flower
The Fifth Element
The Hunchback of Notre Dame
A Prairie Home Companion
Talk to Her
The Commitments
Answer: The Commitments
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Commitments" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "BAFTA Award for Best Film" .   } UNION { ?e <pred:name> "Loving" . ?e <narrative_location> ?e_2 . ?e_2 <pred:name> "New York City" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: BAFTA Award for Best Film
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: The Commitments
function: And
dependencies: 1
2
function: Find
inputs: New York City
function: Relate
dependencies: 4
inputs: narrative location
backward
function: Find
inputs: Loving
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater