Question: What is the connection between Maryland (the one whose director of photography is George Barnes) to Walter Brennan?
Choices:
has immediate cause
executive producer
terminus
distribution
located on astronomical location
cast member
feast day
office contested
vehicle normally used
country of citizenship
Program:
function: Find
inputs: George Barnes
function: Relate
dependencies: 0
inputs: director of photography
backward
function: Find
inputs: Maryland
function: And
dependencies: 1
2
function: Find
inputs: Walter Brennan
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Maryland" . ?e_1 <director_of_photography> ?e_3 . ?e_3 <pred:name> "George Barnes" . ?e_2 <pred:name> "Walter Brennan" . ?e_1 ?p ?e_2 .  }
Answer: cast member