Question: Which has the higher PPP GDP per capita, Tuvalu, which has an inflation rate of 0.4 percent, or Bangladesh, which has a diplomatic relationship with Cambodia?
Choices:
Cambodia
Bangladesh
South Sudan
Benin
Weimar Republic
Russian Soviet Federative Socialist Republic
Tuvalu
Socialist Federal Republic of Yugoslavia
Switzerland
Samoa
Program:
function: Find
inputs: Tuvalu
function: FilterNum
dependencies: 0
inputs: inflation rate
0.4 percentage
=
function: Find
inputs: Cambodia
function: Relate
dependencies: 2
inputs: diplomatic relation
forward
function: Find
inputs: Bangladesh
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: PPP GDP per capita
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tuvalu" . ?e <inflation_rate> ?pv_1 . ?pv_1 <pred:unit> "percentage" . ?pv_1 <pred:value> "0.4"^^xsd:double . } UNION { ?e <pred:name> "Bangladesh" . ?e_1 <diplomatic_relation> ?e . ?e_1 <pred:name> "Cambodia" . } ?e <PPP_GDP_per_capita> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Tuvalu