Question: Does Guernsey (whose area is 63.4 square kilometers) or Java (that contains Jakarta) have less area?
Choices:
Cyprus
Puerto Rico
Tasmania
Long Island
Newfoundland
Hawaii
Java
Trinidad
Guernsey
Ireland
Program:
function: Find
inputs: Guernsey
function: FilterNum
dependencies: 0
inputs: area
63.4 square kilometre
=
function: Find
inputs: Jakarta
function: Relate
dependencies: 2
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Java
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
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> "Java" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Jakarta" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Guernsey