Question: What is the UN/LOCODE of the city whose country is San Marino (the one whose nominal GDP is 2139072847.68212 United States dollar)?
Choices:
KRSEL
ITPSA
USCMI
SMSAI
ITBRC
ITPDA
ITPAV
NZCAN
GBBSH
DEBER
Answer: SMSAI
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <country> ?e_1 . ?e_1 <pred:name> "San Marino" . ?e_1 <nominal_GDP> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "2139072847.68212"^^xsd:double . ?e <UN/LOCODE> ?pv .  }
Program:
function: Find
inputs: San Marino
function: FilterNum
dependencies: 0
inputs: nominal GDP
2139072847.68212 United States dollar
=
function: Relate
dependencies: 1
inputs: country
backward
function: FilterConcept
dependencies: 2
inputs: city
function: QueryAttr
dependencies: 3
inputs: UN/LOCODE