Question: Which area is smaller in size, Exeter (the one whose inception time is 1638) or Belleville (the one whose elevation (above sea level) is 11 metre)?
Choices:
Princeton
Exeter
North Hollywood
West Orange
Red Bank
Ridgewood
Belleville
Livingston
Montclair
Whanganui
Program:
function: Find
inputs: Exeter
function: FilterYear
dependencies: 0
inputs: inception
1638
=
function: Find
inputs: Belleville
function: FilterNum
dependencies: 2
inputs: elevation above sea level
11 metre
=
function: SelectBetween
dependencies: 1
3
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Exeter" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1638 . } UNION { ?e <pred:name> "Belleville" . ?e <elevation_above_sea_level> ?pv_2 . ?pv_2 <pred:unit> "metre" . ?pv_2 <pred:value> "11"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Belleville