Question: Which has less cost, The Doors (whose director of photography is Robert Richardson) or The Phantom of the Opera (which was nominated for Saturn Award for Best Costume)?
Choices:
Talk to Her
The Doors
Training Day
The Phantom of the Opera
Curse of the Golden Flower
The Towering Inferno
Rebecca
A Prairie Home Companion
The Fifth Element
The Hunchback of Notre Dame
Program:
function: Find
inputs: Robert Richardson
function: Relate
dependencies: 0
inputs: director of photography
backward
function: Find
inputs: The Doors
function: And
dependencies: 1
2
function: Find
inputs: Saturn Award for Best Costume
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: The Phantom of the Opera
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Doors" . ?e <director_of_photography> ?e_1 . ?e_1 <pred:name> "Robert Richardson" .   } UNION { ?e <pred:name> "The Phantom of the Opera" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Saturn Award for Best Costume" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Doors