Question: Between Trinidad or Cyprus, population 1120489, which occupies the smaller area?
Choices:
Ireland
Hawaii
Tasmania
Cyprus
Trinidad
Staten Island
Guernsey
Puerto Rico
Long Island
Maui
Program:
function: Find
inputs: Trinidad
function: Find
inputs: Cyprus
function: FilterNum
dependencies: 1
inputs: population
1120489
=
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Trinidad" . } UNION { ?e <pred:name> "Cyprus" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1120489"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Trinidad