Question: What is the connection between Shanghai (the one that is the twinned administrative body of Basel) to Dunedin?
Choices: stated in
head of state
founded by
influenced by
art director
twinned administrative body
Wikidata property
applies to jurisdiction
part of
academic degree
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Shanghai" . ?e_3 <twinned_administrative_body> ?e_1 . ?e_3 <pred:name> "Basel" . ?e_2 <pred:name> "Dunedin" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Basel
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: Find
inputs: Shanghai
function: And
dependencies: 1
2
function: Find
inputs: Dunedin
function: QueryRelation
dependencies: 3
4
Answer: twinned administrative body