Question: Tell me the one that has the bigger area, Egypt (which has an inflation rate of 7.3 percent) or Oman.
Choices:
South Sudan
Egypt
Kiribati
Socialist Federal Republic of Yugoslavia
Samoa
Weimar Republic
Russian Soviet Federative Socialist Republic
Cambodia
Switzerland
Benin
Program:
function: Find
inputs: Egypt
function: FilterNum
dependencies: 0
inputs: inflation rate
7.3 percentage
=
function: Find
inputs: Oman
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Egypt" . ?e <inflation_rate> ?pv_1 . ?pv_1 <pred:unit> "percentage" . ?pv_1 <pred:value> "7.3"^^xsd:double . } UNION { ?e <pred:name> "Oman" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Egypt