Question: What is the connection between Colin Powell (the one that is the member of political party Republican Party) to United States Secretary of State?
Choices:
has immediate cause
occupation
Wikidata property
illustrator
partially contains
killed by
vehicle normally used
student of
published in
position held
Answer: position held
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Colin Powell" . ?e_1 <member_of_political_party> ?e_3 . ?e_3 <pred:name> "Republican Party" . ?e_2 <pred:name> "United States Secretary of State" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Republican Party
function: Relate
dependencies: 0
inputs: member of political party
backward
function: Find
inputs: Colin Powell
function: And
dependencies: 1
2
function: Find
inputs: United States Secretary of State
function: QueryRelation
dependencies: 3
4