Question: Which has a larger nominal GDP per capita, Republic of the Congo (the one whose life expectancy is 53.608 year) or Philippines?
Choices:
Weimar Republic
Russian Soviet Federative Socialist Republic
Republic of the Congo
Switzerland
Samoa
Benin
Kiribati
Cambodia
Socialist Federal Republic of Yugoslavia
Philippines
Program:
function: Find
inputs: Republic of the Congo
function: FilterNum
dependencies: 0
inputs: life expectancy
53.608 year
=
function: Find
inputs: Philippines
function: SelectBetween
dependencies: 1
2
inputs: nominal GDP per capita
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Republic of the Congo" . ?e <life_expectancy> ?pv_1 . ?pv_1 <pred:unit> "year" . ?pv_1 <pred:value> "53.608"^^xsd:double . } UNION { ?e <pred:name> "Philippines" . } ?e <nominal_GDP_per_capita> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Philippines