Question: Does Middlesex County (the one that contains Framingham) or Hampshire County (the one whose population is 159844) have lesser area ?
Choices:
Bristol County
Norfolk County
Essex County
Barnstable County
Suffolk County
Hampshire County
Middlesex County
Franklin County
Berkshire County
Plymouth County
Program:
function: Find
inputs: Framingham
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Middlesex County
function: And
dependencies: 1
2
function: Find
inputs: Hampshire County
function: FilterNum
dependencies: 4
inputs: population
159844
=
function: SelectBetween
dependencies: 3
5
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Middlesex County" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Framingham" . } UNION { ?e <pred:name> "Hampshire County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "159844"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hampshire County