Question: What is the relation between John Davis (the one that is a member of San Diego Padres) and Chicago (the one that is the narrative location of Bridesmaids)?
Choices: followed by
professorship
country of origin
maintained by
source of material
platform
newspaper format
place of birth
update method
art director
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Davis" . ?e_1 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "San Diego Padres" . ?e_2 <pred:name> "Chicago" . ?e_4 <narrative_location> ?e_2 . ?e_4 <pred:name> "Bridesmaids" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: San Diego Padres
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: John Davis
function: And
dependencies: 1
2
function: Find
inputs: Bridesmaids
function: Relate
dependencies: 4
inputs: narrative location
forward
function: Find
inputs: Chicago
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
Answer: place of birth