Question: Does Colombia or Sierra Leone have greater GDP (PPP)?
Choices:
France
Mozambique
Zimbabwe
Tunisia
Bolivia
Colombia
Germany
Namibia
Malawi
Sierra Leone
Program:
function: Find
inputs: Colombia
function: Find
inputs: Sierra Leone
function: SelectBetween
dependencies: 0
1
inputs: GDP (PPP)
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Colombia" .  } UNION { ?e <pred:name> "Sierra Leone" .  } ?e <GDP_(PPP)> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Colombia