Question: Bad Teacher, with David Alan Grier as a cast member, is connected in what way to Los Angeles?
Choices:
narrative location
interests
candidate
office held by head of state
architect
parent club
has quality
religious order
different from
heritage designation
Program:
function: Find
inputs: David Alan Grier
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Bad Teacher
function: And
dependencies: 1
2
function: Find
inputs: Los Angeles
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Bad Teacher" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "David Alan Grier" . ?e_2 <pred:name> "Los Angeles" . ?e_1 ?p ?e_2 .  }
Answer: narrative location