Question: Which is larger, in terms of area: Tasmania, occupying 65022 square km, or Long Island, at 190 km long?
Choices:
Tasmania
Hawaii
Staten Island
Ireland
Puerto Rico
Newfoundland
Guernsey
Maui
Long Island
Cyprus
Answer: Tasmania
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tasmania" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "65022"^^xsd:double . } UNION { ?e <pred:name> "Long Island" . ?e <length> ?pv_2 . ?pv_2 <pred:unit> "kilometre" . ?pv_2 <pred:value> "190"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Tasmania
function: FilterNum
dependencies: 0
inputs: area
65022 square kilometre
=
function: Find
inputs: Long Island
function: FilterNum
dependencies: 2
inputs: length
190 kilometre
=
function: SelectBetween
dependencies: 1
3
inputs: area
greater