Question: What is the size of the Massachusetts county named after Middlesex?
Choices:
485.18 square kilometre
78476639 square metre
2195 square kilometre
55.58 square kilometre
809.83 square kilometre
118.551888 square kilometre
1327 square kilometre
183108 square kilometre
6582 square kilometre
22402200 square kilometre
Program:
function: Find
inputs: Middlesex
function: Relate
dependencies: 0
inputs: named after
backward
function: FilterConcept
dependencies: 1
inputs: county of Massachusetts
function: QueryAttr
dependencies: 2
inputs: area
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Massachusetts" . ?e <named_after> ?e_1 . ?e_1 <pred:name> "Middlesex" .  ?e <area> ?pv .  }
Answer: 2195 square kilometre