Question: What is the common border between San Marino (population 30130) and Italy?
Choices: Bulgaria–Russia relations
Bulgaria–Turkey border
Italy–San Marino border
Panama–Taiwan relations
Greece–Mexico relations
France–Syria relations
UEFA.com
Iran–Philippines relations
Mexico-South Africa relations
Malaysia–New Zealand relations
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "San Marino" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "30130"^^xsd:double . ?e_2 <pred:name> "Italy" . ?e_1 <shares_border_with> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_2 ] <statement_is_subject_of> ?qpv .  }
Program:
function: Find
inputs: San Marino
function: FilterNum
dependencies: 0
inputs: population
30130
=
function: Find
inputs: Italy
function: QueryRelationQualifier
dependencies: 1
2
inputs: shares border with
statement is subject of
Answer: Italy–San Marino border