Question: What is the relation that James Brown of the Miami Dolphins has with the U.S. capital of Philadelphia?
Choices:
instrument
headquarters location
religion
place of birth
language used
student
notable people with this condition
production designer
present in work
heritage designation
Program:
function: Find
inputs: Miami Dolphins
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: James Brown
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: Relate
dependencies: 4
inputs: capital of
backward
function: Find
inputs: Philadelphia
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "James Brown" . ?e_1 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "Miami Dolphins" . ?e_2 <pred:name> "Philadelphia" . ?e_2 <capital_of> ?e_4 . ?e_4 <pred:name> "United States of America" . ?e_1 ?p ?e_2 .  }
Answer: place of birth