Question: Which one, Cheyenne (the one whose composer is Max Steiner) or Rent (the one whose narrative location is New York City), has greater duration?
Choices:
The Hunchback of Notre Dame
Rebecca
A Prairie Home Companion
Talk to Her
Cheyenne
The Towering Inferno
Rent
Curse of the Golden Flower
Training Day
The Fifth Element
Answer: Rent
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cheyenne" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Max Steiner" .   } UNION { ?e <pred:name> "Rent" . ?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: Max Steiner
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Cheyenne
function: And
dependencies: 1
2
function: Find
inputs: New York City
function: Relate
dependencies: 4
inputs: narrative location
backward
function: Find
inputs: Rent
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater