Question: Which covers a greater area, the 63.4 square kilometre Guernsey or Nantucket?
Choices:
Hawaii
Trinidad
Puerto Rico
Newfoundland
Cyprus
Nantucket
Maui
Tasmania
Guernsey
Long Island
Program:
function: Find
inputs: Guernsey
function: FilterNum
dependencies: 0
inputs: area
63.4 square kilometre
=
function: Find
inputs: Nantucket
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Guernsey" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "63.4"^^xsd:double . } UNION { ?e <pred:name> "Nantucket" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Nantucket