Question: Which area is larger, Ipswich (the one whose area is 36.9 square kilometre) or Dorchester (the one whose elevation (above sea level) is 55 metre)?
Choices:
Warwick
Northampton
Aylesbury
Taunton
Ipswich
Bedford
Reading
Oxford
Maidstone
Dorchester
Answer: Ipswich
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ipswich" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "36.9"^^xsd:double . } UNION { ?e <pred:name> "Dorchester" . ?e <elevation_above_sea_level> ?pv_2 . ?pv_2 <pred:unit> "metre" . ?pv_2 <pred:value> "55"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Ipswich
function: FilterNum
dependencies: 0
inputs: area
36.9 square kilometre
=
function: Find
inputs: Dorchester
function: FilterNum
dependencies: 2
inputs: elevation above sea level
55 metre
=
function: SelectBetween
dependencies: 1
3
inputs: area
greater