Question: What literary work derives Empire of the Sun that has Miranda Richardson as a cast member and was nominated for an Academy Award for Best Cinematography?
Choices:
The Hours
listed building in the United Kingdom
The Maltese Falcon
Contact
The Painted Veil
Empire of the Sun
Along Came a Spider
Live and Let Die
Interview with the Vampire
Starship Troopers
Answer: Empire of the Sun
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "written work" . ?e_1 <based_on> ?e . ?e_1 <pred:name> "Empire of the Sun" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Miranda Richardson" .  ?e <derivative_work> ?e_3 . ?e_3 <pred:name> "Empire of the Sun" . ?e_3 <nominated_for> ?e_4 . ?e_4 <pred:name> "Academy Award for Best Cinematography" .  }
Program:
function: Find
inputs: Miranda Richardson
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Empire of the Sun
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: based on
forward
function: FilterConcept
dependencies: 4
inputs: written work
function: Find
inputs: Academy Award for Best Cinematography
function: Relate
dependencies: 6
inputs: nominated for
backward
function: Find
inputs: Empire of the Sun
function: And
dependencies: 7
8
function: Relate
dependencies: 9
inputs: derivative work
backward
function: FilterConcept
dependencies: 10
inputs: written work
function: And
dependencies: 5
11
function: What
dependencies: 12