Question: Which is geographically smaller: Guernsey, with an area of 63.4 square kilometres, or Staten Island (subreddit statenisland)?
Choices:
Staten Island
Tasmania
Trinidad
Newfoundland
Long Island
Puerto Rico
Ireland
Guernsey
Hawaii
Cyprus
Program:
function: Find
inputs: Guernsey
function: FilterNum
dependencies: 0
inputs: area
63.4 square kilometre
=
function: Find
inputs: Staten Island
function: FilterStr
dependencies: 2
inputs: subreddit
statenisland
function: SelectBetween
dependencies: 1
3
inputs: area
less
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> "Staten Island" . ?e <subreddit> ?pv_2 . ?pv_2 <pred:value> "statenisland" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Guernsey