Question: How is Carrie (located in Maine) related to Judy Greer?
Choices:
country of citizenship
instrument
headquarters location
shares border with
replaced by
native language
color
based on
cast member
production designer
Program:
function: Find
inputs: Maine
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Carrie
function: And
dependencies: 1
2
function: Find
inputs: Judy Greer
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Carrie" . ?e_1 <narrative_location> ?e_3 . ?e_3 <pred:name> "Maine" . ?e_2 <pred:name> "Judy Greer" . ?e_1 ?p ?e_2 .  }
Answer: cast member