Question: Which has less GDP (PPP), Kuwait or Singapore whose life expectancy is 79.99024 year?
Choices:
Kuwait
Weimar Republic
Singapore
Switzerland
Socialist Federal Republic of Yugoslavia
Russian Soviet Federative Socialist Republic
South Sudan
Benin
Samoa
Kiribati
Answer: Kuwait
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kuwait" . } UNION { ?e <pred:name> "Singapore" . ?e <life_expectancy> ?pv_1 . ?pv_1 <pred:unit> "year" . ?pv_1 <pred:value> "79.99024"^^xsd:double . } ?e <GDP_(PPP)> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Kuwait
function: Find
inputs: Singapore
function: FilterNum
dependencies: 1
inputs: life expectancy
79.99024 year
=
function: SelectBetween
dependencies: 0
2
inputs: GDP (PPP)
less