Question: What United States city is located in Bristol County (whose area is 1790 square kilometers) and has a population of less than 540000 as of 2011?
Choices: Franklin
Columbus
Oakland
New Orleans
Taunton
New Haven
Waukegan
Danbury
New Bedford
Madison
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Bristol County" . ?e_1 <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> "1790"^^xsd:double .  ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> ?v . FILTER ( ?v < "540000"^^xsd:double ) . [ <pred:fact_h> ?e ; <pred:fact_r> <population> ; <pred:fact_t> ?pv_1 ] <point_in_time> ?qpv . ?qpv <pred:year> 2011 .  }
Program:
function: Find
inputs: Bristol County
function: FilterNum
dependencies: 0
inputs: area
1790 square kilometre
=
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: city of the United States
function: FindAll
function: FilterNum
dependencies: 4
inputs: population
540000
<
function: QFilterYear
dependencies: 5
inputs: point in time
2011
=
function: FilterConcept
dependencies: 6
inputs: city of the United States
function: And
dependencies: 3
7
function: What
dependencies: 8
Answer: New Bedford