Question: Which one is longer, Phil Spector (the one whose genre is biographical film) or Algiers (the one that was nominated for Academy Award for Best Cinematography)    ?
Choices: Pleasantville
Training Day
Curse of the Golden Flower
A Prairie Home Companion
The Towering Inferno
Algiers
Phil Spector
The Hunchback of Notre Dame
Rebecca
The Fifth Element
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Phil Spector" . ?e <genre> ?e_1 . ?e_1 <pred:name> "biographical film" .   } UNION { ?e <pred:name> "Algiers" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Cinematography" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: biographical film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Phil Spector
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Cinematography
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: Algiers
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Algiers