Question: Which country has a lower retirement age, United States of America or Bosnia and Herzegovina?
Choices:
Switzerland
South Sudan
Kiribati
United States of America
Samoa
Cambodia
Weimar Republic
Benin
Bosnia and Herzegovina
Socialist Federal Republic of Yugoslavia
Program:
function: Find
inputs: United States of America
function: Find
inputs: Bosnia and Herzegovina
function: SelectBetween
dependencies: 0
1
inputs: retirement age
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "United States of America" .  } UNION { ?e <pred:name> "Bosnia and Herzegovina" .  } ?e <retirement_age> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Bosnia and Herzegovina