Question: Does Belize or Djibouti, population 663999, possess the higher gross domestic product (PPP)?
Choices:
Socialist Federal Republic of Yugoslavia
Switzerland
Kiribati
Samoa
Cambodia
Benin
Djibouti
Weimar Republic
Belize
Russian Soviet Federative Socialist Republic
Program:
function: Find
inputs: Belize
function: Find
inputs: Djibouti
function: FilterNum
dependencies: 1
inputs: population
663999
=
function: SelectBetween
dependencies: 0
2
inputs: GDP (PPP)
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Belize" . } UNION { ?e <pred:name> "Djibouti" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "663999"^^xsd:double . } ?e <GDP_(PPP)> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Djibouti