Question: Does the longer running time belong to The Commitments, a BAFTA nominee for Best Film, or Bel Ami, filmed in Budapest?
Choices:
Training Day
A Prairie Home Companion
Talk to Her
The Hunchback of Notre Dame
Rebecca
The Commitments
The Towering Inferno
The Fifth Element
Pleasantville
Curse of the Golden Flower
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> "Bel Ami" . ?e <filming_location> ?e_2 . ?e_2 <pred:name> "Budapest" .  } ?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: Budapest
function: Relate
dependencies: 4
inputs: filming location
backward
function: Find
inputs: Bel Ami
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater