Question: What is the connection between Robert Shaw (the one that is the member of political party Republican Party) to lawyer?
Choices:
member of political party
history of topic
operator
convicted of
office held by head of state
occupation
original film format
chief executive officer
production company
facet of
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Robert Shaw" . ?e_1 <member_of_political_party> ?e_3 . ?e_3 <pred:name> "Republican Party" . ?e_2 <pred:name> "lawyer" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Republican Party
function: Relate
dependencies: 0
inputs: member of political party
backward
function: Find
inputs: Robert Shaw
function: And
dependencies: 1
2
function: Find
inputs: lawyer
function: QueryRelation
dependencies: 3
4