Question: Which area is longer, Java (the one whose perimeter is 2884 kilometre) or Vancouver Island?
Choices:
Trinidad
Tasmania
Hawaii
Long Island
Cyprus
Maui
Puerto Rico
Vancouver Island
Ireland
Java
Program:
function: Find
inputs: Java
function: FilterNum
dependencies: 0
inputs: perimeter
2884 kilometre
=
function: Find
inputs: Vancouver Island
function: SelectBetween
dependencies: 1
2
inputs: length
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Java" . ?e <perimeter> ?pv_1 . ?pv_1 <pred:unit> "kilometre" . ?pv_1 <pred:value> "2884"^^xsd:double . } UNION { ?e <pred:name> "Vancouver Island" . } ?e <length> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Java