Question: How is The Apartment (with Ray Walston as a cast member) related to the Academy Award for Best Cinematography?
Choices:
genre
doctoral student
place of publication
nominated for
said to be the same as
located in or next to body of water
architect
original network
child astronomical body
color
Program:
function: Find
inputs: Ray Walston
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Apartment
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Cinematography
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Apartment" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Ray Walston" . ?e_2 <pred:name> "Academy Award for Best Cinematography" . ?e_1 ?p ?e_2 .  }
Answer: nominated for