Question: Which has greater retirement age, Luxembourg whose area is 2586.4 square kilometers or Malta?
Choices:
Cuba
Tajikistan
Finland
Sweden
Lithuania
Bulgaria
Kazakhstan
Fiji
Luxembourg
Malta
Program:
function: Find
inputs: Luxembourg
function: FilterNum
dependencies: 0
inputs: area
2586.4 square kilometre
=
function: Find
inputs: Malta
function: SelectBetween
dependencies: 1
2
inputs: retirement age
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Luxembourg" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "2586.4"^^xsd:double . } UNION { ?e <pred:name> "Malta" . } ?e <retirement_age> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Luxembourg