Question: What is the connection between Richmond (the one that is headed by mayor) to Canada?
Choices: studies
cites
military rank
interests
film regional debut venue
narrative role
nutrient
country
eye color
currency
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Richmond" . ?e_1 <office_held_by_head_of_government> ?e_3 . ?e_3 <pred:name> "mayor" . ?e_2 <pred:name> "Canada" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: mayor
function: Relate
dependencies: 0
inputs: office held by head of government
backward
function: Find
inputs: Richmond
function: And
dependencies: 1
2
function: Find
inputs: Canada
function: QueryRelation
dependencies: 3
4
Answer: country