Question: What is the relationship between Tripoli, which has a local dialing code of 21, and Algiers, which has the postal code 16000-16132?
Choices:
risk factor
place of death
lowest point
programming language
fabrication method
position played on team / speciality
replaced by
twinned administrative body
capital
home venue
Answer: twinned administrative body
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Tripoli" . ?e_1 <local_dialing_code> ?pv . ?pv <pred:value> "21" . ?e_2 <pred:name> "Algiers" . ?e_2 <postal_code> ?pv_1 . ?pv_1 <pred:value> "16000–16132" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Tripoli
function: FilterStr
dependencies: 0
inputs: local dialing code
21
function: Find
inputs: Algiers
function: FilterStr
dependencies: 2
inputs: postal code
16000–16132
function: QueryRelation
dependencies: 1
3