Question: What is the diplomatic relationship between Italy and San Marino, population 18895?
Choices: Algeria–Mali border
GBM
India–New Zealand relations
Algeria–Ukraine relations
Germany-Cameroon relations
51st Annual Grammy Awards
Belarus-India relations
Italy–San Marino relations
Alabama–Mississippi border
Algeria–Greece relations
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "San Marino" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "18895"^^xsd:double . ?e_2 <pred:name> "Italy" . ?e_1 <diplomatic_relation> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_2 ] <statement_is_subject_of> ?qpv .  }
Program:
function: Find
inputs: San Marino
function: FilterNum
dependencies: 0
inputs: population
18895
=
function: Find
inputs: Italy
function: QueryRelationQualifier
dependencies: 1
2
inputs: diplomatic relation
statement is subject of
Answer: Italy–San Marino relations