Question: What is the relationship between City of London to Shanghai (the one that is the birthplace of Wong Kar-wai)?
Choices: fabrication method
sports season of league or competition
chief executive officer
country for sport
lowest point
residence
twinned administrative body
medical treatment
chairperson
winner
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "City of London" . ?e_2 <pred:name> "Shanghai" . ?e_3 <place_of_birth> ?e_2 . ?e_3 <pred:name> "Wong Kar-wai" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: City of London
function: Find
inputs: Wong Kar-wai
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: Shanghai
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: twinned administrative body