Question: Which area is larger, Ireland (the one whose life expectancy is 81.45366 year) or Barbados?
Choices:
South Sudan
Cambodia
Switzerland
Kiribati
Samoa
Benin
Weimar Republic
Ireland
Socialist Federal Republic of Yugoslavia
Barbados
Answer: Ireland
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ireland" . ?e <life_expectancy> ?pv_1 . ?pv_1 <pred:unit> "year" . ?pv_1 <pred:value> "81.45366"^^xsd:double . } UNION { ?e <pred:name> "Barbados" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Ireland
function: FilterNum
dependencies: 0
inputs: life expectancy
81.45366 year
=
function: Find
inputs: Barbados
function: SelectBetween
dependencies: 1
2
inputs: area
greater