Question: Does Bosnia and Herzegovina or Brazil (that has a diplomatic relationship with Zambia) have the higher real gross domestic product rate of growth?
Choices:
Samoa
South Sudan
Socialist Federal Republic of Yugoslavia
Benin
Brazil
Kiribati
Russian Soviet Federative Socialist Republic
Bosnia and Herzegovina
Cambodia
Weimar Republic
Program:
function: Find
inputs: Bosnia and Herzegovina
function: Find
inputs: Zambia
function: Relate
dependencies: 1
inputs: diplomatic relation
backward
function: Find
inputs: Brazil
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: real gross domestic product growth rate
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bosnia and Herzegovina" .  } UNION { ?e <pred:name> "Brazil" . ?e <diplomatic_relation> ?e_1 . ?e_1 <pred:name> "Zambia" .   } ?e <real_gross_domestic_product_growth_rate> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bosnia and Herzegovina