Question: Which is longer, Bonnie and Clyde that received a 40th Academy Award or Serpico that was shot in New York City?
Choices:
Bonnie and Clyde
The Hunchback of Notre Dame
Curse of the Golden Flower
Pleasantville
The Towering Inferno
The Fifth Element
Serpico
Training Day
Rebecca
A Prairie Home Companion
Answer: Serpico
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bonnie and Clyde" . ?e <award_received> ?e_1 . ?e_1 <pred:name> "40th Academy Awards" .   } UNION { ?e <pred:name> "Serpico" . ?e <filming_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: 40th Academy Awards
function: Relate
dependencies: 0
inputs: award received
backward
function: Find
inputs: Bonnie and Clyde
function: And
dependencies: 1
2
function: Find
inputs: New York City
function: Relate
dependencies: 4
inputs: filming location
backward
function: Find
inputs: Serpico
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater