Question: How is John Spencer (the one that has the occupation of politician) related to Republican Party ?
Choices: currency
applies to jurisdiction
voice actor
nutrient
permanent resident of
located in or next to body of water
member of political party
librettist
student of
organisation directed from the office or person
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Spencer" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "politician" . ?e_2 <pred:name> "Republican Party" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: politician
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: John Spencer
function: And
dependencies: 1
2
function: Find
inputs: Republican Party
function: QueryRelation
dependencies: 3
4
Answer: member of political party