Question: Is the total reserves figure lower for Panama, or for San Marino with the motto Свобода?
Choices:
Samoa
Cambodia
Benin
Kiribati
Panama
Weimar Republic
Socialist Federal Republic of Yugoslavia
San Marino
Switzerland
South Sudan
Program:
function: Find
inputs: Panama
function: Find
inputs: San Marino
function: FilterStr
dependencies: 1
inputs: motto text
Свобода
function: SelectBetween
dependencies: 0
2
inputs: total reserves
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Panama" . } UNION { ?e <pred:name> "San Marino" . ?e <motto_text> ?pv_1 . ?pv_1 <pred:value> "Свобода" . } ?e <total_reserves> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: San Marino