Question: How are Shanghai (the twinned administrative entity of Saint Petersburg) and KwaZulu-Natal related?
Choices: has immediate cause
officially opened by
diplomatic relation
sponsor
enclave within
source of material
twinned administrative body
kit supplier
instrumentation
taxon rank
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "KwaZulu-Natal" . ?e_2 <pred:name> "Shanghai" . ?e_2 <twinned_administrative_body> ?e_3 . ?e_3 <pred:name> "Saint Petersburg" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: KwaZulu-Natal
function: Find
inputs: Saint Petersburg
function: Relate
dependencies: 1
inputs: twinned administrative body
backward
function: Find
inputs: Shanghai
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: twinned administrative body