Question: Which one has higher nominal GDP per capita, Saint Kitts and Nevis or Kosovo ?
Choices:
Saint Vincent and the Grenadines
Ukrainian Soviet Socialist Republic
Denmark
Finland
Saint Kitts and Nevis
Trinidad and Tobago
Tajikistan
Jamaica
Kosovo
Lithuania
Program:
function: Find
inputs: Saint Kitts and Nevis
function: Find
inputs: Kosovo
function: SelectBetween
dependencies: 0
1
inputs: nominal GDP per capita
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Saint Kitts and Nevis" .  } UNION { ?e <pred:name> "Kosovo" .  } ?e <nominal_GDP_per_capita> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Saint Kitts and Nevis