Question: Who is closer to retirement, Liechtenstein or Greece?
Choices:
Lithuania
Liechtenstein
Sweden
Bulgaria
Finland
Greece
Kazakhstan
Fiji
Cuba
Kosovo
Program:
function: Find
inputs: Liechtenstein
function: Find
inputs: Greece
function: SelectBetween
dependencies: 0
1
inputs: retirement age
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Liechtenstein" .  } UNION { ?e <pred:name> "Greece" .  } ?e <retirement_age> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Liechtenstein