Question: What is the connection between Japan to Singapore (the one whose ISO 3166-1 alpha-2 code is SG)?
Choices:
librettist
stated in
medical condition
office contested
model item
diplomatic relation
political ideology
filming location
manner of death
creator
Program:
function: Find
inputs: Japan
function: Find
inputs: Singapore
function: FilterStr
dependencies: 1
inputs: ISO 3166-1 alpha-2 code
SG
function: QueryRelation
dependencies: 0
2
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Japan" . ?e_2 <pred:name> "Singapore" . ?e_2 <ISO_3166-1_alpha-2_code> ?pv . ?pv <pred:value> "SG" . ?e_1 ?p ?e_2 .  }
Answer: diplomatic relation