Question: What is the relationship between Maryland, with Walter Brennan in the cast, to Walter Brennan?
Choices:
family
heritage designation
next lower rank
practiced by
operating area
executive producer
approved by
killed by
cast member
given name
Program:
function: Find
inputs: Walter Brennan
function: Relate
dependencies: 0
inputs: cast member
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 <cast_member> ?e_3 . ?e_3 <pred:name> "Walter Brennan" . ?e_2 <pred:name> "Walter Brennan" . ?e_1 ?p ?e_2 .  }
Answer: cast member