Question: Which has greater unemployment rate, Bangladesh which has a diplomatic relation with Denmark or Barbados?
Choices: South Sudan
Kiribati
Bangladesh
Russian Soviet Federative Socialist Republic
Switzerland
Weimar Republic
Barbados
Benin
Cambodia
Socialist Federal Republic of Yugoslavia
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bangladesh" . ?e <diplomatic_relation> ?e_1 . ?e_1 <pred:name> "Denmark" .   } UNION { ?e <pred:name> "Barbados" .  } ?e <unemployment_rate> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Denmark
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: Find
inputs: Bangladesh
function: And
dependencies: 1
2
function: Find
inputs: Barbados
function: SelectBetween
dependencies: 3
4
inputs: unemployment rate
greater
Answer: Barbados