Question: Who has a larger median income, Japan or Kuwait?
Choices: Samoa
South Sudan
Kiribati
Russian Soviet Federative Socialist Republic
Kuwait
Cambodia
Weimar Republic
Switzerland
Socialist Federal Republic of Yugoslavia
Benin
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Japan" .  } UNION { ?e <pred:name> "Kuwait" .  } ?e <median_income> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Japan
function: Find
inputs: Kuwait
function: SelectBetween
dependencies: 0
1
inputs: median income
greater
Answer: Kuwait