Question: How is Friends, set in New York City, linked to Matthew Perry?
Choices:
medical treatment
film regional debut venue
member of
student
cast member
significant person
applies to jurisdiction
operating area
movement
narrative location
Program:
function: Find
inputs: New York City
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Friends
function: And
dependencies: 1
2
function: Find
inputs: Matthew Perry
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Friends" . ?e_1 <narrative_location> ?e_3 . ?e_3 <pred:name> "New York City" . ?e_2 <pred:name> "Matthew Perry" . ?e_1 ?p ?e_2 .  }
Answer: cast member