Question: Which county of Massachusetts borders Bristol County (population of 49,033) and, on 1st July 2012, it contained number of inhabitants different from 8,100 ?
Choices: Berkshire County
Suffolk County
Franklin County
Providence County
Worcester County
Barnstable County
Bristol County
Hampshire County
Plymouth County
Norfolk County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Massachusetts" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Bristol County" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "49033"^^xsd:double .  ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> ?v . FILTER ( ?v != "8100"^^xsd:double ) . [ <pred:fact_h> ?e ; <pred:fact_r> <population> ; <pred:fact_t> ?pv_1 ] <point_in_time> ?qpv . ?qpv <pred:date> "2012-07-01"^^xsd:date .  }
Program:
function: Find
inputs: Bristol County
function: FilterNum
dependencies: 0
inputs: population
49033
=
function: Relate
dependencies: 1
inputs: shares border with
forward
function: FilterConcept
dependencies: 2
inputs: county of Massachusetts
function: FindAll
function: FilterNum
dependencies: 4
inputs: population
8100
!=
function: QFilterDate
dependencies: 5
inputs: point in time
2012-07-01
=
function: FilterConcept
dependencies: 6
inputs: county of Massachusetts
function: And
dependencies: 3
7
function: What
dependencies: 8
Answer: Bristol County