Question: Tell me the one with less GDP (PPP), Austria or Georgia (the one with the life expectancy of 72.832 years).
Choices:
Bolivia
Tunisia
Austria
Germany
Italy
Sierra Leone
Mozambique
Colombia
Zimbabwe
Georgia
Program:
function: Find
inputs: Austria
function: Find
inputs: Georgia
function: FilterNum
dependencies: 1
inputs: life expectancy
72.832 year
=
function: SelectBetween
dependencies: 0
2
inputs: GDP (PPP)
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Austria" . } UNION { ?e <pred:name> "Georgia" . ?e <life_expectancy> ?pv_1 . ?pv_1 <pred:unit> "year" . ?pv_1 <pred:value> "72.832"^^xsd:double . } ?e <GDP_(PPP)> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Georgia