Question: Was production cheaper for The Doors, with director of photography Robert Richardson, or The Invention of Lying?
Choices:
The Doors
The Invention of Lying
The Hunchback of Notre Dame
Training Day
Rebecca
A Prairie Home Companion
Curse of the Golden Flower
Talk to Her
The Towering Inferno
Pleasantville
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: The Invention of Lying
function: SelectBetween
dependencies: 3
4
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 Invention of Lying" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Invention of Lying