Question: I want to know the one with the greater nominal GDP per capita, Peru or Cyprus (which has an inflation rate of 5.8 percentage)
Choices: Samoa
Kiribati
Russian Soviet Federative Socialist Republic
Peru
Socialist Federal Republic of Yugoslavia
Cambodia
Weimar Republic
Benin
Cyprus
Switzerland
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Peru" . } UNION { ?e <pred:name> "Cyprus" . ?e <inflation_rate> ?pv_1 . ?pv_1 <pred:unit> "percentage" . ?pv_1 <pred:value> "5.8"^^xsd:double . } ?e <nominal_GDP_per_capita> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Peru
function: Find
inputs: Cyprus
function: FilterNum
dependencies: 1
inputs: inflation rate
5.8 percentage
=
function: SelectBetween
dependencies: 0
2
inputs: nominal GDP per capita
greater
Answer: Cyprus