Question: Which has less GDP (PPP), Saudi Arabia or Uruguay?
Choices:
Benin
Switzerland
Uruguay
Socialist Federal Republic of Yugoslavia
Weimar Republic
South Sudan
Samoa
Saudi Arabia
Russian Soviet Federative Socialist Republic
Cambodia
Program:
function: Find
inputs: Saudi Arabia
function: Find
inputs: Uruguay
function: SelectBetween
dependencies: 0
1
inputs: GDP (PPP)
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Saudi Arabia" .  } UNION { ?e <pred:name> "Uruguay" .  } ?e <GDP_(PPP)> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Uruguay