Question: Which is longer, Long Island with a population of 56978 or Hawaii with a population of 190821?
Choices:
Maui
Trinidad
Newfoundland
Hawaii
Ireland
Guernsey
Staten Island
Cyprus
Puerto Rico
Tasmania
Program:
function: Find
inputs: Long Island
function: FilterNum
dependencies: 0
inputs: population
56978
=
function: Find
inputs: Hawaii
function: FilterNum
dependencies: 2
inputs: population
190821
=
function: SelectBetween
dependencies: 1
3
inputs: length
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Long Island" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "56978"^^xsd:double . } UNION { ?e <pred:name> "Hawaii" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "190821"^^xsd:double . } ?e <length> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hawaii