Question: Which area has a larger GDP (PPP), Kyrgyzstan or Qatar?
Choices:
Kyrgyzstan
Samoa
Switzerland
South Sudan
Cambodia
Qatar
Benin
Socialist Federal Republic of Yugoslavia
Weimar Republic
Kiribati
Program:
function: Find
inputs: Kyrgyzstan
function: Find
inputs: Qatar
function: SelectBetween
dependencies: 0
1
inputs: GDP (PPP)
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kyrgyzstan" .  } UNION { ?e <pred:name> "Qatar" .  } ?e <GDP_(PPP)> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Qatar