Question: Which area is smaller, Berkshire County or Essex County (the one whose population is 762550)?
Choices:
Norfolk County
Berkshire County
Worcester County
Plymouth County
Hampshire County
Barnstable County
Bristol County
Suffolk County
Essex County
Middlesex County
Program:
function: Find
inputs: Berkshire County
function: Find
inputs: Essex County
function: FilterNum
dependencies: 1
inputs: population
762550
=
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Berkshire County" . } UNION { ?e <pred:name> "Essex County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "762550"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Essex County