Question: How is Quebec, with the capital Quebec City, related to "premier"?
Choices: license
official residence
airline hub
educated at
discoverer or inventor
takes place in fictional universe
mouth of the watercourse
office held by head of government
different from
update method
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Quebec" . ?e_3 <capital_of> ?e_1 . ?e_3 <pred:name> "Quebec City" . ?e_2 <pred:name> "premier" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Quebec City
function: Relate
dependencies: 0
inputs: capital of
forward
function: Find
inputs: Quebec
function: And
dependencies: 1
2
function: Find
inputs: premier
function: QueryRelation
dependencies: 3
4
Answer: office held by head of government