Question: What relation does Puerto Rico—which has an ISO 3166-2 code of US-PR—have with Latin America?
Choices:
has part
field of this occupation
cast member
appears in the form of
office held by head of state
part of the series
nominated for
hair color
musical conductor
fabrication method
Program:
function: Find
inputs: Latin America
function: Find
inputs: Puerto Rico
function: FilterStr
dependencies: 1
inputs: ISO 3166-2 code
US-PR
function: QueryRelation
dependencies: 0
2
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Latin America" . ?e_2 <pred:name> "Puerto Rico" . ?e_2 <ISO_3166-2_code> ?pv . ?pv <pred:value> "US-PR" . ?e_1 ?p ?e_2 .  }
Answer: has part